fix: system fs paths on windows (#838) #214
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: windows | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- main | |
paths: | |
- "go.*" | |
- "**/*.go" | |
- "Taskfile.yml" | |
- ".github/workflows/windows.yml" | |
pull_request: | |
paths: | |
- "go.*" | |
- "**/*.go" | |
- "Taskfile.yml" | |
- ".github/workflows/windows.yml" | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
- uses: arduino/setup-task@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: setup-tparse | |
run: go install github.com/mfridman/tparse@latest | |
- run: task setup | |
- name: test | |
shell: bash | |
run: ./scripts/test.sh test windows-latest | |
build-pkgs: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
- uses: arduino/setup-task@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- shell: bash | |
run: | | |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4 | |
with: | |
path: dist/ | |
key: ${{ env.sha_short }} | |
enableCrossOsArchive: true | |
- run: task acceptance:windows:package | |
install-pkgs: | |
runs-on: ubuntu-latest | |
needs: [build-pkgs] | |
steps: | |
- uses: docker/setup-qemu-action@v3 | |
- uses: actions/checkout@v4 | |
- uses: arduino/setup-task@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- shell: bash | |
run: | | |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4 | |
with: | |
path: dist/ | |
key: ${{ env.sha_short }} | |
enableCrossOsArchive: true | |
- run: task acceptance:windows:install |