Skip to content

Commit d71a524

Browse files
committed
Move published release installation test to new workflow
So that it can be triggered from the `release` workflow (as they have been since GitoxideLabs#1555), as well as directly. This is to make it easier to run or rerun the published crate installation tests, as well as any future such tests that may be added, without having to run jobs that are involved in making the release.
1 parent 60c29a5 commit d71a524

File tree

2 files changed

+48
-38
lines changed

2 files changed

+48
-38
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Test published release
2+
3+
on: [ workflow_call, workflow_dispatch ]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
installation:
10+
strategy:
11+
matrix:
12+
build: [ win-msvc, win-gnu, win32-msvc, win32-gnu ]
13+
include:
14+
- build: win-msvc
15+
os: windows-latest
16+
rust: stable
17+
target: x86_64-pc-windows-msvc
18+
- build: win-gnu
19+
os: windows-latest
20+
rust: stable-x86_64-gnu
21+
target: x86_64-pc-windows-gnu
22+
- build: win32-msvc
23+
os: windows-latest
24+
rust: stable
25+
target: i686-pc-windows-msvc
26+
- build: win32-gnu
27+
os: windows-latest
28+
rust: stable
29+
target: i686-pc-windows-gnu
30+
31+
runs-on: ${{ matrix.os }}
32+
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Install Rust
36+
uses: dtolnay/rust-toolchain@master
37+
with:
38+
toolchain: ${{ matrix.rust }}
39+
targets: ${{ matrix.target }}
40+
- uses: msys2/setup-msys2@v2
41+
with:
42+
msystem: MINGW${{ startsWith(matrix.target, 'i686-') && '32' || '64' }}
43+
pacboy: cc:p
44+
path-type: inherit
45+
- name: 'Installation from crates.io: gitoxide'
46+
run: cargo +${{ matrix.rust }} install --target ${{ matrix.target }} --no-default-features --features max-pure --target-dir install-artifacts --debug --force gitoxide
47+
shell: msys2 {0}

.github/workflows/release.yml

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -505,41 +505,4 @@ jobs:
505505
}' -F discussionId="$DISCUSSION_ID" -F body="$comment_body"
506506
507507
installation:
508-
strategy:
509-
matrix:
510-
build: [ win-msvc, win-gnu, win32-msvc, win32-gnu ]
511-
include:
512-
- build: win-msvc
513-
os: windows-latest
514-
rust: stable
515-
target: x86_64-pc-windows-msvc
516-
- build: win-gnu
517-
os: windows-latest
518-
rust: stable-x86_64-gnu
519-
target: x86_64-pc-windows-gnu
520-
- build: win32-msvc
521-
os: windows-latest
522-
rust: stable
523-
target: i686-pc-windows-msvc
524-
- build: win32-gnu
525-
os: windows-latest
526-
rust: stable
527-
target: i686-pc-windows-gnu
528-
529-
runs-on: ${{ matrix.os }}
530-
531-
steps:
532-
- uses: actions/checkout@v4
533-
- name: Install Rust
534-
uses: dtolnay/rust-toolchain@master
535-
with:
536-
toolchain: ${{ matrix.rust }}
537-
targets: ${{ matrix.target }}
538-
- uses: msys2/setup-msys2@v2
539-
with:
540-
msystem: MINGW${{ startsWith(matrix.target, 'i686-') && '32' || '64' }}
541-
pacboy: cc:p
542-
path-type: inherit
543-
- name: 'Installation from crates.io: gitoxide'
544-
run: cargo +${{ matrix.rust }} install --target ${{ matrix.target }} --no-default-features --features max-pure --target-dir install-artifacts --debug --force gitoxide
545-
shell: msys2 {0}
508+
uses: ./.github/workflows/release-check.yml

0 commit comments

Comments
 (0)