Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
genofire committed Jul 18, 2024
1 parent 66ebd1a commit b819c24
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ jobs:
args: --timeout=5m

build:
strategy:
matrix:
include:
- arch: amd64
os: linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -76,11 +81,13 @@ jobs:
with:
go-version: '1.21'
- name: Build
run: go build -ldflags "-X github.com/FreifunkBremen/yanic/cmd.VERSION=$(git describe --tags)" -v
run: go build -ldflags "-X github.com/FreifunkBremen/yanic/cmd.VERSION=$(git describe --tags)" -v -o yanic_${{ matrix.arch }}_${{ matrix.os }}
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
CGO_ENABLED: 0
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: yanic
name: build-${{ matrix.arch }}-${{ matrix.os }}
path: yanic_*
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

permissions:
contents: read # for checkout
attestations: read # for artifacts download

jobs:
release:
Expand Down Expand Up @@ -40,10 +41,11 @@ jobs:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
pattern: build*
pattern: build-*
path: build/
merge-multiple: true
run-id: ${{ github.event.workflow_run.workflow_id }}
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Release
env:
Expand Down

0 comments on commit b819c24

Please sign in to comment.