-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (34 loc) · 971 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
name: "Build executable"
on:
workflow_dispatch:
jobs:
test:
uses: VicDeo/go-obfuscate/.github/workflows/test.yml@master
build:
needs: test
strategy:
matrix:
include:
- GOOS: linux
artifact: go-obfuscate.linux.amd64
- GOOS: windows
artifact: go-obfuscate.exe
- GOOS: darwin
artifact: go-obfuscate.macos.amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Install dependencies
run: go get .
- name: Build for ${{ matrix.os }}
run: GOOS="${{ matrix.GOOS }}" GOARCH="amd64" go build -o ${{ matrix.artifact }}
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: go-obfuscate-artifacts
path: |
${{ matrix.artifact }}