mirror of
https://github.com/juanfont/headscale.git
synced 2025-03-29 08:43:43 -04:00
Make goreleaser use Nix
Eliminate one more place to make sure we use the same go version Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
95d3062c21
commit
19f12f94c0
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
@ -9,27 +9,17 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
goreleaser:
|
goreleaser:
|
||||||
runs-on: ubuntu-18.04 # due to CGO we need to user an older version
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: 1.19.0
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- uses: cachix/install-nix-action@v16
|
||||||
run: |
|
|
||||||
sudo apt update
|
- name: Run goreleaser
|
||||||
sudo apt install -y gcc-aarch64-linux-gnu
|
run: nix develop --command -- goreleaser release --rm-dist
|
||||||
- name: Run GoReleaser
|
|
||||||
uses: goreleaser/goreleaser-action@v2
|
|
||||||
with:
|
|
||||||
distribution: goreleaser
|
|
||||||
version: latest
|
|
||||||
args: release --rm-dist
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user