-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 949 Bytes
/
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
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
os: ubuntu-latest,
package_suffix: "linux"
}
- {
os: windows-latest,
package_suffix: "windows"
}
steps:
- uses: actions/checkout@v3
- name: Setup environment
uses: actions/setup-go@v4
with:
go-version: '1.20.x'
- name: Install build dependencies
if: ${{ runner.os == 'Windows' }}
run: choco install -y make
- name: Build core utilities
shell: bash
run: make VERSION="$(git rev-parse --short HEAD)"
- name: Upload binaries as artifacts
uses: actions/upload-artifact@v3
with:
name: simpleutils-${{ matrix.config.package_suffix }}
path: build