Last active
March 25, 2021 14:51
-
-
Save dominicletz/5e50c49aa1bf30d2485f5bece177c82f to your computer and use it in GitHub Desktop.
Activate msys2 64bit on windows-latest github actions target
This file contains hidden or 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: "CI" | |
on: ["push", "pull_request"] | |
jobs: | |
build_and_test: | |
name: "Run tests and build artifacts" | |
strategy: | |
matrix: | |
os: ["windows-latest", "ubuntu-latest", "macOS-latest"] | |
go: ["1.14.x"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- if: runner.os == 'Windows' | |
run: | | |
echo "C:\\msys64\\usr\\bin" >> $GITHUB_PATH | |
echo "C:\\msys64\\mingw64\\bin" >> $GITHUB_PATH | |
echo "PKG_CONFIG_PATH=/mingw64/lib/pkgconfig" >> $GITHUB_ENV | |
- ...your other steps... |
Yeah you're right, I've updated it now with the new syntax. But In the project where I used this before I've changed to use https://github.com/msys2/setup-msys2 now.
You can check the full source code of my current golang ci here: https://github.com/diodechain/diode_client/blob/master/.github/workflows/ci.yml
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's probably too old method. It get: