Skip to content

Commit ce75963

Browse files
authored
Merge pull request #1555 from NobodyXu/ci/installation
Run job installation in workflow release
2 parents e35206b + cb7e2d5 commit ce75963

File tree

2 files changed

+40
-42
lines changed

2 files changed

+40
-42
lines changed

.github/workflows/ci.yml

-42
Original file line numberDiff line numberDiff line change
@@ -115,47 +115,6 @@ jobs:
115115
# TODO: figure out why `git` doesn't pick up environment configuration so build scripts fail when using `-p gix`.
116116
run: cross test -p gix-hashtable --target ${{ matrix.target }}
117117

118-
installation:
119-
strategy:
120-
matrix:
121-
build: [ win-msvc, win-gnu, win32-msvc, win32-gnu ]
122-
include:
123-
- build: win-msvc
124-
os: windows-latest
125-
rust: stable
126-
target: x86_64-pc-windows-msvc
127-
- build: win-gnu
128-
os: windows-latest
129-
rust: stable-x86_64-gnu
130-
target: x86_64-pc-windows-gnu
131-
- build: win32-msvc
132-
os: windows-latest
133-
rust: stable
134-
target: i686-pc-windows-msvc
135-
- build: win32-gnu
136-
os: windows-latest
137-
rust: stable
138-
target: i686-pc-windows-gnu
139-
runs-on: ${{ matrix.os }}
140-
steps:
141-
- uses: actions/checkout@v4
142-
- name: Install Rust
143-
uses: dtolnay/rust-toolchain@master
144-
with:
145-
toolchain: ${{ matrix.rust }}
146-
targets: ${{ matrix.target }}
147-
- uses: Swatinem/rust-cache@v2
148-
- uses: msys2/setup-msys2@v2
149-
with:
150-
msystem: MINGW${{ startsWith(matrix.target, 'i686-') && '32' || '64' }}
151-
pacboy: cc:p
152-
path-type: inherit
153-
- name: "Install prerequisites"
154-
run: vcpkg install zlib:x64-windows-static-md
155-
- name: "Installation from crates.io: gitoxide"
156-
run: cargo +${{ matrix.rust }} install --target ${{ matrix.target }} --no-default-features --features max-pure --target-dir install-artifacts --debug --force gitoxide
157-
shell: msys2 {0}
158-
159118
lint:
160119
runs-on: ubuntu-latest
161120
steps:
@@ -255,7 +214,6 @@ jobs:
255214
- test
256215
- test-fast
257216
- test-32bit
258-
- installation
259217
- lint
260218
- cargo-deny
261219
- wasm

.github/workflows/release.yml

+40
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)