44 tags :
55 - ' *'
66jobs :
7-
8- release_amd64 :
9- name : Release (AMD64 - CentOS 7 Target)
10- runs-on : ubuntu-latest
7+ build :
8+ strategy :
9+ matrix :
10+ platform : [ubuntu-latest, macos-latest]
11+ linux-platforms : ['linux', 'alpine']
12+ runs-on : ${{ matrix.platform }}
1113 steps :
12- - uses : actions/checkout@v1
14+ - uses : actions/checkout@master
1315
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
16+ - uses : actions/setup-node@v1
2517 with :
26- artifacts : " release/*.tar.gz,release/*.zip"
27- bodyFile : " CHANGELOG.md"
28- token : ${{ secrets.GITHUB_TOKEN }}
18+ node-version : ' 10.x'
2919
30- release_amd64_alpine :
31- name : Build (AMD64 - Alpine Target)
32- runs-on : ubuntu-latest
33- steps :
34- - uses : actions/checkout@v1
35-
36- - name : Build code-server Binary
37- run : yarn && bash ./scripts/ci.bash
20+ - name : Build code-server binary (Linux)
21+ run : bash ./scripts/ci.bash
3822 env :
3923 MAJOR_VERSION : ' 2'
40- TARGET : ' alpine '
24+ TARGET : ${{ matrix.linux-platforms }}
4125 VERSION : ' ${MAJOR_VERSION}.${GITHUB_SHA}'
4226 VSCODE_VERSION : ' 1.38.1'
4327 MINIFY : ' true'
4428 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
5729
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
30+ - name : Build code-server binary (macOS)
31+ if : contains( ${{ matrix.platform }} , 'macos-latest')
32+ run : bash ./scripts/ci.bash
6333 env :
6434 MAJOR_VERSION : ' 2'
65- TARGET : ' linux'
6635 VERSION : ' ${MAJOR_VERSION}.${GITHUB_SHA}'
6736 VSCODE_VERSION : ' 1.38.1'
6837 MINIFY : ' true'
69- PACKAGE : ' true'
70-
71- - uses : ncipollo/release-action@v1
72- with :
73- artifacts : " release/*.tar.gz,release/*.zip"
74- bodyFile : " CHANGELOG.md"
75- token : ${{ secrets.GITHUB_TOKEN }}
38+ PACKAGE : ' true'
0 commit comments