forked from coder/code-server
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.2 KB
/
build-commit.yml
File metadata and controls
46 lines (42 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build
on:
push:
branches:
- 'sr229/octocat'
- 'master'
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
linux-platforms: ['linux', 'alpine']
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Build code-server binary (Linux)
run: bash ./scripts/ci.bash
env:
PLATFORM: ${{ matrix.platform }}
MAJOR_VERSION: '2'
TARGET: ${{ matrix.linux-platforms }}
VERSION: '${MAJOR_VERSION}.${GITHUB_SHA}'
VSCODE_VERSION: '1.38.1'
MINIFY: 'true'
PACKAGE: 'true'
- name: Build code-server binary (macOS)
if: ${PLATFORM} == "macos"
run: bash ./scripts/ci.bash
env:
PLATFORM: ${{ matrix.platform }}
MAJOR_VERSION: '2'
VERSION: '${MAJOR_VERSION}.${GITHUB_SHA}'
VSCODE_VERSION: '1.38.1'
MINIFY: 'true'
PACKAGE: 'true'
- uses: actions/upload-artifact@master
with:
name: nightly-builds
path: build/