Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed Dec 26, 2023
1 parent e675703 commit 0266254
Showing 1 changed file with 56 additions and 3 deletions.
59 changes: 56 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ permissions:
contents: write
packages: write

env:
GO_VERSION: 1.20

jobs:
build_linux:
build_linux_x86_64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -88,6 +91,40 @@ jobs:
files: './*.rpm'
repo-token: ${{ secrets.GITHUB_TOKEN }}

build_linux_arm64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Install libfido2-dev
run: sudo apt-get install -y libfido2-dev
- name: Build minimal arm64 featureset
run: GOARCH=arm64 go build -tags nofido2 -o goldwarden_linux_arm64 -v .
- uses: AButler/upload-release-assets@v2.0
with:
files: './goldwarden_linux_arm64'
repo-token: ${{ secrets.GITHUB_TOKEN }}

build_linux_x86:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Build minimal x86 featureset
run: GOARCH=386 go build -tags nofido2 -o goldwarden_linux_x86 -v .
- uses: AButler/upload-release-assets@v2.0
with:
files: './goldwarden_linux_x86'
repo-token: ${{ secrets.GITHUB_TOKEN }}

build_macos_x86_64:
runs-on: macos-latest
steps:
Expand All @@ -96,13 +133,29 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: ${{ env.GO_VERSION }}
- name: Build
run: go build -tags "nofido2" -o "goldwarden_macos_x86_64" -v .
- uses: AButler/upload-release-assets@v2.0
with:
files: './goldwarden_macos_x86_64'
repo-token: ${{ secrets.GITHUB_TOKEN }}

build_macos_arm64:
runs-on: macos-13-xlarge
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Build
run: go build -tags "nofido2" -o "goldwarden_macos_arm64" -v .
- uses: AButler/upload-release-assets@v2.0
with:
files: './goldwarden_macos_arm64'
repo-token: ${{ secrets.GITHUB_TOKEN }}

build_windows_x86_64:
runs-on: windows-latest
Expand All @@ -112,7 +165,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: ${{ env.GO_VERSION }}
- name: Build
run: go build -tags "nofido2" -o "goldwarden_windows_x86_64.exe" -v .
- uses: AButler/upload-release-assets@v2.0
Expand Down

0 comments on commit 0266254

Please sign in to comment.