Skip to content

test: fix on windows #13

test: fix on windows

test: fix on windows #13

Workflow file for this run

name: build
on:
pull_request:
branches:
- main
push:
branches-ignore:
- main
paths-ignore:
- "docs/**"
- README.md
- "releases/**"
jobs:
build:
runs-on: ubuntu-latest
env:
EGET_DIR: ${{github.workspace}}/.eget
EGET_CONFIG: ${{github.workspace}}/.eget/.eget.toml
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup eget
shell: bash
run: |
curl https://zyedidia.github.io/eget.sh | sh
mkdir -p $EGET_DIR && mv eget $EGET_DIR
DIR=$(readlink -f $EGET_DIR) # workaround for windows + toml
printf "[global]\ntarget='$DIR'\nquiet=true\ngithub_token='${{ github.token }}'\n" > $EGET_CONFIG
echo $EGET_DIR >> $GITHUB_PATH
echo "EGET_CONFIG=$EGET_CONFIG" >> $GITHUB_ENV
- name: Download k6
run: ./tools/getk6 $(< k6-version.txt)
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23.x"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "2.4.7"
args: build --snapshot --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}