Skip to content

use zig for cross compilation (#64) #10

use zig for cross compilation (#64)

use zig for cross compilation (#64) #10

Workflow file for this run

name: release
on:
push:
tags:
- 'v*'
permissions:
contents: write
id-token: write
packages: write
jobs:
goreleaser:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:

Check failure on line 18 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 18, Col: 14): Unexpected value '' .github/workflows/release.yml (Line: 19, Col: 9): Unexpected value 'fetch-depth'
fetch-depth: 0 # this is important, otherwise it won't checkout the full tree (i.e. no previous tags)
- uses: actions/setup-go@v3
with:
go-version: 1.19
cache: true
- uses: goto-bus-stop/setup-zig@v2
- name: Set output
id: macos_sdk
run: echo "path=$(xcrun --show-sdk-path)" >> $GITHUB_OUTPUT
- uses: goreleaser/goreleaser-action@v4 # run goreleaser
with:
version: latest
args: release --clean
env:
SDK_PATH: ${{ steps.macos_sdk.outputs.path }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}