mirror of https://git.sr.ht/~ashkeel/strimertul
ci: use proper image
This commit is contained in:
parent
d3496d5d39
commit
4eee1ccc12
|
@ -2,21 +2,18 @@ name: Build
|
|||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
env:
|
||||
GOPRIVATE: git.sr.ht
|
||||
|
||||
jobs:
|
||||
build:
|
||||
release:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: ghcr.io/abjrcode/cross-wails:v2.8.1
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
- name: Setup Wails
|
||||
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
|
||||
- name: Build
|
||||
run: wails build
|
|
@ -7,6 +7,7 @@ on:
|
|||
- "v*.*.*-alpha.*"
|
||||
- "v*.*.*-beta.*"
|
||||
- "v*.*.*-rc.*"
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
GOPRIVATE: git.sr.ht
|
||||
|
@ -14,15 +15,10 @@ env:
|
|||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: ghcr.io/abjrcode/cross-wails:v2.8.1
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
- name: Setup Wails
|
||||
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
|
||||
- name: Install dependencies
|
||||
run: apt-get update && apt-get install -y upx
|
||||
- name: Build linux/amd64 release
|
||||
run: GOOS=linux GOARCH=amd64 CC=x86_64-linux-gnu-gcc wails build -ldflags "-X main.appVersion=${GITHUB_REF_NAME}" -platform linux/amd64 -upx -upxflags "-9" -o strimertul-amd64
|
||||
- name: Build linux/arm64 release
|
||||
|
|
|
@ -2,7 +2,6 @@ name: Test
|
|||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
|
@ -10,7 +9,7 @@ env:
|
|||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Go
|
||||
|
|
Loading…
Reference in New Issue