Skip to content

Commit 712e93b

Browse files
authored
Run installation in release.yml
Also remove rust-cache as it isn't effective against cargo-install
1 parent e35206b commit 712e93b

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,3 +413,43 @@ jobs:
413413
run: gh release --repo="$REPOSITORY" edit "$VERSION" --draft=false
414414
env:
415415
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
416+
417+
installation:
418+
strategy:
419+
matrix:
420+
build: [win-msvc, win-gnu, win32-msvc, win32-gnu]
421+
include:
422+
- build: win-msvc
423+
os: windows-latest
424+
rust: stable
425+
target: x86_64-pc-windows-msvc
426+
- build: win-gnu
427+
os: windows-latest
428+
rust: stable-x86_64-gnu
429+
target: x86_64-pc-windows-gnu
430+
- build: win32-msvc
431+
os: windows-latest
432+
rust: stable
433+
target: i686-pc-windows-msvc
434+
- build: win32-gnu
435+
os: windows-latest
436+
rust: stable
437+
target: i686-pc-windows-gnu
438+
runs-on: ${{ matrix.os }}
439+
steps:
440+
- uses: actions/checkout@v4
441+
- name: Install Rust
442+
uses: dtolnay/rust-toolchain@master
443+
with:
444+
toolchain: ${{ matrix.rust }}
445+
targets: ${{ matrix.target }}
446+
- uses: msys2/setup-msys2@v2
447+
with:
448+
msystem: MINGW${{ startsWith(matrix.target, 'i686-') && '32' || '64' }}
449+
pacboy: cc:p
450+
path-type: inherit
451+
- name: "Install prerequisites"
452+
run: vcpkg install zlib:x64-windows-static-md
453+
- name: "Installation from crates.io: gitoxide"
454+
run: cargo +${{ matrix.rust }} install --target ${{ matrix.target }} --no-default-features --features max-pure --target-dir install-artifacts --debug --force gitoxide
455+
shell: msys2 {0}

0 commit comments

Comments
 (0)