Skip to content

Commit 12621da

Browse files
Berrysoftnagisa
authored andcommitted
ci: add cygwin test on MSYS2
1 parent b264a11 commit 12621da

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/libloading.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,26 @@ jobs:
6565
env:
6666
TARGET: ${{ matrix.rust_target}}
6767

68+
msys2-test:
69+
runs-on: windows-latest
70+
strategy:
71+
fail-fast: false
72+
steps:
73+
- uses: actions/checkout@v2
74+
- run: rustup install nightly --profile=minimal
75+
- run: rustup default nightly
76+
- uses: msys2/setup-msys2@v2
77+
with:
78+
release: false
79+
install: gcc
80+
- run: mkdir .cargo
81+
- run: echo "[target.x86_64-pc-cygwin]" | Out-File -FilePath .cargo/config.toml -Append
82+
- run: echo 'linker = "x86_64-pc-msys-gcc.exe"' | Out-File -FilePath .cargo/config.toml -Append
83+
- run: echo "INPUT(libmsys-2.0.a)" | Out-File -FilePath "C:\msys64\usr\lib\libcygwin.a"
84+
- run: cargo test --target x86_64-pc-cygwin -Zbuild-std
85+
env:
86+
TARGET: x86_64-pc-windows-msvc
87+
6888
bare-cross-build:
6989
runs-on: ubuntu-latest
7090
strategy:

0 commit comments

Comments
 (0)