Skip to content

Commit f43e19d

Browse files
committed
fix: GCC Windows GitHub action
1 parent e88398a commit f43e19d

File tree

1 file changed

+45
-44
lines changed

1 file changed

+45
-44
lines changed

.github/workflows/tests-gcc-windows.yml

Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -14,56 +14,57 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
include:
17-
# - { icon: '⬛', sys: mingw32 }
1817
- { icon: '🟦', sys: mingw64 }
19-
# - { icon: '🟨', sys: ucrt64 }
2018
# - { icon: '🟧', sys: clang64 }
21-
name: ${{ matrix.icon }} ${{ matrix.sys }}
22-
defaults:
23-
run:
24-
shell: msys2 {0}
25-
steps:
19+
defaults:
20+
run:
21+
shell: msys2 {0}
2622

27-
- name: '🧰 Checkout'
28-
uses: actions/checkout@v4
29-
with:
30-
fetch-depth: 0
23+
steps:
3124

32-
- name: '${{ matrix.icon }} Setup MSYS2'
33-
uses: msys2/setup-msys2@v2
34-
with:
35-
msystem: ${{matrix.sys}}
36-
cache: true
37-
update: true
38-
install: >-
39-
git
40-
pacboy: >-
41-
toolchain:p
42-
cmake:p
43-
ninja:p
25+
- name: '🧰 Checkout'
26+
uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
4429

45-
- name: Cache 3rd party dependencies
46-
id: cache-3rd-party-deps-restore
47-
uses: actions/cache/restore@v3
48-
with:
49-
path: |
50-
install
51-
key: ${{ runner.os }}-cache-3rd-party-deps
30+
- name: '${{ matrix.icon }} Setup MSYS2'
31+
uses: msys2/setup-msys2@v2
32+
with:
33+
msystem: ${{matrix.sys}}
34+
cache: true
35+
update: true
36+
install: >-
37+
git
38+
pacboy: >-
39+
toolchain:p
40+
cmake:p
41+
ninja:p
5242
43+
- name: Cache 3rd party dependencies
44+
id: cache-3rd-party-deps-restore
45+
uses: actions/cache/restore@v3
46+
with:
47+
path: |
48+
install
49+
key: ${{ runner.os }}-cache-3rd-party-deps
5350

54-
- name: Caching project dependencies
55-
id: project-cache
56-
uses: Swatinem/rust-cache@v2
5751

58-
- name: Running the tests for the project
59-
run: |
60-
cd zork++
61-
RUST_LOG=trace cargo test 2>&1 gcc_windows --color=always --no-fail-fast -- --nocapture --show-output --test-threads=1
52+
- name: Caching project dependencies
53+
id: project-cache
54+
uses: Swatinem/rust-cache@v2
55+
56+
- name: Running the tests for the project
57+
run: |
58+
export PATH=$PATH:C:\Users\runneradmin\.cargo\bin
59+
exec bash
60+
cd zork++
61+
RUST_LOG=trace cargo test 2>&1 gcc_windows --color=always --no-fail-fast -- --nocapture --show-output --test-threads=1
62+
63+
- name: Cache 3rd party dependencies
64+
id: cache-save-3rd-party-deps
65+
uses: actions/cache/save@v3
66+
with:
67+
path: |
68+
install
69+
key: ${{ steps.cache-3rd-party-deps-restore.outputs.cache-primary-key }}
6270

63-
- name: Cache 3rd party dependencies
64-
id: cache-save-3rd-party-deps
65-
uses: actions/cache/save@v3
66-
with:
67-
path: |
68-
install
69-
key: ${{ steps.cache-3rd-party-deps-restore.outputs.cache-primary-key }}

0 commit comments

Comments
 (0)