Skip to content

Commit eb0fee7

Browse files
committed
[ci] workaround for outdated Node.js in CI
this is a silly hack i want to remove soon if GitHub finally updates their Node.js to 10 Signed-off-by: Ayane Satomi <chinodesuuu@gmail.com>
1 parent 005ed87 commit eb0fee7

2 files changed

Lines changed: 88 additions & 7 deletions

File tree

.github/workflows/build-commit.yml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,48 @@
11
name: Build
22
on: [push, pull_request]
33
jobs:
4-
build:
5-
name: Build
4+
build_amd64:
5+
name: Build (AMD64 - CentOS 7 Target)
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v1
99

1010
- name: Build code-server Binary
11-
run: bash ./scripts/ci.bash
11+
run: yarn && bash ./scripts/ci.bash
1212
env:
1313
VERSION: master
14+
TARGET: 'linux'
15+
VSCODE_VERSION: '1.38.1'
16+
MINIFY: 'true'
17+
PACKAGE: 'true'
18+
build_amd64_alpine:
19+
name: Build (AMD64 - Alpine Target)
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v1
23+
24+
- name: Build code-server Binary
25+
run: yarn && bash ./scripts/ci.bash
26+
env:
27+
VERSION: master
28+
TARGET: 'alpine'
29+
VSCODE_VERSION: '1.38.1'
30+
MINIFY: 'true'
31+
PACKAGE: 'true'
32+
build_macos:
33+
name: Build (macOS Target)
34+
runs-on: macOS-latest
35+
steps:
36+
- uses: actions/checkout@v1
37+
38+
- name: Workaround outdated Node in CI
39+
run: brew uninstall node@6 && brew install node@12
40+
41+
- name: Build code-server Binary
42+
run: yarn && bash ./scripts/ci.bash
43+
env:
44+
VERSION: master
45+
TARGET: ''
1446
VSCODE_VERSION: '1.38.1'
1547
MINIFY: 'true'
1648
PACKAGE: 'true'

.github/workflows/build-release.yml

Lines changed: 53 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,68 @@
1-
name: Build
1+
name: Release
22
on:
33
push:
44
tags:
55
- '*'
66
jobs:
7-
release:
8-
name: Build
7+
8+
release_amd64:
9+
name: Release (AMD64 - CentOS 7 Target)
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
14+
- name: Build code-server Binary
15+
run: yarn && bash ./scripts/ci.bash
16+
env:
17+
MAJOR_VERSION: '2'
18+
TARGET: 'linux'
19+
VERSION: '${MAJOR_VERSION}.${GITHUB_SHA}'
20+
VSCODE_VERSION: '1.38.1'
21+
MINIFY: 'true'
22+
PACKAGE: 'true'
23+
24+
- uses: ncipollo/release-action@v1
25+
with:
26+
artifacts: "release/*.tar.gz,release/*.zip"
27+
bodyFile: "CHANGELOG.md"
28+
token: ${{ secrets.GITHUB_TOKEN }}
29+
30+
release_amd64_alpine:
31+
name: Build (AMD64 - Alpine Target)
932
runs-on: ubuntu-latest
1033
steps:
1134
- uses: actions/checkout@v1
1235

1336
- name: Build code-server Binary
14-
run: bash ./scripts/ci.bash
37+
run: yarn && bash ./scripts/ci.bash
38+
env:
39+
MAJOR_VERSION: '2'
40+
TARGET: 'alpine'
41+
VERSION: '${MAJOR_VERSION}.${GITHUB_SHA}'
42+
VSCODE_VERSION: '1.38.1'
43+
MINIFY: 'true'
44+
PACKAGE: 'true'
45+
46+
- uses: ncipollo/release-action@v1
47+
with:
48+
artifacts: "release/*.tar.gz,release/*.zip"
49+
bodyFile: "CHANGELOG.md"
50+
token: ${{ secrets.GITHUB_TOKEN }}
51+
52+
release_macos:
53+
name: Build (macOS Target)
54+
runs-on: macOS-latest
55+
steps:
56+
- uses: actions/checkout@v1
57+
58+
- name: Workaround outdated Node in CI
59+
run: brew uninstall node@6 && brew install node@12
60+
61+
- name: Build code-server Binary
62+
run: yarn && bash ./scripts/ci.bash
1563
env:
1664
MAJOR_VERSION: '2'
65+
TARGET: 'linux'
1766
VERSION: '${MAJOR_VERSION}.${GITHUB_SHA}'
1867
VSCODE_VERSION: '1.38.1'
1968
MINIFY: 'true'

0 commit comments

Comments
 (0)