-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (39 loc) · 1.35 KB
/
go.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
name: Build and Release Flatpak-Compose
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.17'
- name: Install dependencies
run: |
go mod download
- name: Build flatpak-compose for Linux
run: |
GOARCH=amd64 GOOS=linux go build -o flatpak-compose-linux-amd64 ./cmd/main.go
- name: Build flatpak-compose for macOS
run: |
GOARCH=amd64 GOOS=darwin go build -o flatpak-compose-macos-amd64 ./cmd/main.go
- name: Build flatpak-compose for Windows
run: |
GOARCH=amd64 GOOS=windows go build -o flatpak-compose-windows-amd64.exe ./cmd/main.go
- name: Zip artifacts
run: |
zip flatpak-compose-linux-amd64.zip flatpak-compose-linux-amd64
zip flatpak-compose-macos-amd64.zip flatpak-compose-macos-amd64
zip flatpak-compose-windows-amd64.zip flatpak-compose-windows-amd64.exe
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: flatpak-compose-builds
path: |
flatpak-compose-linux-amd64.zip
flatpak-compose-macos-amd64.zip
flatpak-compose-windows-amd64.zip