-
Notifications
You must be signed in to change notification settings - Fork 55
33 lines (33 loc) · 1015 Bytes
/
canary.yml
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
on:
push:
paths-ignore:
- 'docs/**'
branches:
- master
name: Canary
jobs:
canary:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.16.3'
- name: Build Hermit
run: |
make GOOS=linux GOARCH=amd64 CHANNEL=canary build
make GOOS=linux GOARCH=arm64 CHANNEL=canary build
make GOOS=darwin GOARCH=amd64 CHANNEL=canary build
make GOOS=darwin GOARCH=arm64 CHANNEL=canary build
INSTALLER_VERSION=$(go run -ldflags "-X main.channel=canary" ./cmd/hermit gen-installer --dest=build/install.sh)
cp build/install.sh build/install-"${INSTALLER_VERSION}".sh
- name: Release canary
uses: ncipollo/release-action@v1
with:
tag: canary
name: Canary
allowUpdates: true
artifacts: "build/*"
token: ${{ secrets.GITHUB_TOKEN }}