-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.24 KB
/
build.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build and Install
on:
push:
branches: [ maestro ]
pull_request:
branches: [ maestro ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest] # , windows-latest deprecated
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Install Dependencies and Build on Linux
if: runner.os == 'Linux'
run: |
bash ./install-libheif.sh
go test
GOOS=linux go build -o bin/heif-converter-linux
- name: Install Dependencies and Build on macOS
if: runner.os == 'macOS'
run: |
bash ./install-libheif-macos.sh
go test
GOOS=darwin go build -o bin/heif-converter-macos
- name: Archive Production Artifacts
uses: actions/upload-artifact@v3
with:
name: heif-converter-${{ runner.os }}
path: |
./bin/*
# - name: Commit and push
# run: |
# git config --local user.email "action@github.com"
# git config --local user.name "GitHub Action"
# git add ./bin/*
# git commit -m "Add binaries from build" -a
# git push