Skip to content

Commit a8c0d38

Browse files
committed
wip
1 parent 0388bd4 commit a8c0d38

File tree

1 file changed

+131
-111
lines changed

1 file changed

+131
-111
lines changed

.github/workflows/ci.yml

+131-111
Original file line numberDiff line numberDiff line change
@@ -32,129 +32,149 @@ concurrency:
3232
cancel-in-progress: true
3333

3434
jobs:
35-
deny:
36-
uses: taiki-e/workflows/.github/workflows/deny.yml@main
37-
msrv:
38-
uses: taiki-e/workflows/.github/workflows/msrv.yml@main
39-
with:
40-
event_name: ${{ github.event_name }}
41-
tidy:
42-
uses: taiki-e/workflows/.github/workflows/tidy.yml@main
35+
# deny:
36+
# uses: taiki-e/workflows/.github/workflows/deny.yml@main
37+
# msrv:
38+
# uses: taiki-e/workflows/.github/workflows/msrv.yml@main
39+
# with:
40+
# event_name: ${{ github.event_name }}
41+
# tidy:
42+
# uses: taiki-e/workflows/.github/workflows/tidy.yml@main
4343

44-
test:
45-
strategy:
46-
fail-fast: false
47-
matrix:
48-
include:
49-
- rust: stable
50-
- rust: beta
51-
- rust: nightly
52-
- rust: nightly
53-
os: macos-11
54-
- rust: nightly
55-
os: windows-2019
56-
runs-on: ${{ matrix.os || 'ubuntu-20.04' }}
44+
# test:
45+
# strategy:
46+
# fail-fast: false
47+
# matrix:
48+
# include:
49+
# - rust: stable
50+
# - rust: beta
51+
# - rust: nightly
52+
# - rust: nightly
53+
# os: macos-11
54+
# - rust: nightly
55+
# os: windows-2019
56+
# runs-on: ${{ matrix.os || 'ubuntu-20.04' }}
57+
# timeout-minutes: 60
58+
# steps:
59+
# - uses: actions/checkout@v4
60+
# with:
61+
# persist-credentials: false
62+
# - name: Install Rust
63+
# run: rustup toolchain add ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
64+
# - run: rustup toolchain add nightly --no-self-update
65+
# - run: echo "RUSTFLAGS=${RUSTFLAGS} -C target-feature=+crt-static" >>"${GITHUB_ENV}"
66+
# if: startsWith(matrix.os, 'windows')
67+
# - run: cargo test --workspace --all-features
68+
# - run: |
69+
# set -euxo pipefail
70+
# cargo install --path . --debug
71+
# cd tests/fixtures/real
72+
# cargo hack check --feature-powerset --workspace
73+
# cargo uninstall cargo-hack
74+
# - uses: taiki-e/install-action@cargo-hack
75+
# - uses: taiki-e/install-action@cargo-minimal-versions
76+
# - run: cargo hack build --workspace --no-private --feature-powerset --no-dev-deps
77+
# - run: cargo minimal-versions build --workspace --no-private --all-features
78+
79+
# build:
80+
# name: build (${{ matrix.target }})
81+
# strategy:
82+
# fail-fast: false
83+
# matrix:
84+
# # When updating this list, the reminder to update the target list in release.yml.
85+
# include:
86+
# - target: aarch64-unknown-linux-gnu
87+
# - target: aarch64-unknown-linux-musl
88+
# - target: aarch64-apple-darwin
89+
# os: macos-11
90+
# - target: aarch64-pc-windows-msvc
91+
# os: windows-2019
92+
# - target: x86_64-unknown-linux-gnu
93+
# - target: x86_64-unknown-linux-musl
94+
# - target: x86_64-apple-darwin
95+
# os: macos-11
96+
# - target: x86_64-pc-windows-msvc
97+
# os: windows-2019
98+
# - target: x86_64-unknown-freebsd
99+
# runs-on: ${{ matrix.os || 'ubuntu-20.04' }}
100+
# timeout-minutes: 60
101+
# steps:
102+
# - uses: actions/checkout@v4
103+
# with:
104+
# persist-credentials: false
105+
# - name: Install Rust
106+
# run: rustup update stable --no-self-update
107+
# - uses: taiki-e/setup-cross-toolchain-action@v1
108+
# with:
109+
# target: ${{ matrix.target }}
110+
# - run: echo "RUSTFLAGS=${RUSTFLAGS} -C target-feature=+crt-static" >>"${GITHUB_ENV}"
111+
# if: endsWith(matrix.target, 'windows-msvc')
112+
# - run: cargo build --target ${{ matrix.target }}
113+
# - run: cargo build --target ${{ matrix.target }} --release
114+
# # For debugging
115+
# - uses: actions/upload-artifact@v3
116+
# with:
117+
# name: ${{ matrix.target }}
118+
# path: target/${{ matrix.target }}/release/cargo-hack*
119+
120+
# test-compat:
121+
# name: test (1.${{ matrix.rust }})
122+
# strategy:
123+
# fail-fast: false
124+
# matrix:
125+
# rust:
126+
# # cargo-hack is usually runnable with Cargo versions older than the Rust version required for installation.
127+
# # When updating this, the reminder to update the minimum supported Rust version in README.md.
128+
# - 26
129+
# - 30
130+
# - 31
131+
# - 36
132+
# - 39
133+
# - 41
134+
# runs-on: ubuntu-20.04
135+
# timeout-minutes: 60
136+
# steps:
137+
# - uses: actions/checkout@v4
138+
# with:
139+
# persist-credentials: false
140+
# - name: Install Rust
141+
# run: rustup toolchain add nightly --no-self-update && rustup default nightly
142+
# - run: CARGO_HACK_TEST_TOOLCHAIN=${{ matrix.rust }} cargo test --workspace --all-features
143+
# # Remove stable toolchain to disable https://github.com/taiki-e/cargo-hack/pull/138's behavior.
144+
# - run: rustup toolchain remove stable
145+
# - run: CARGO_HACK_TEST_TOOLCHAIN=${{ matrix.rust }} cargo test --workspace --all-features
146+
147+
test-no-rustup:
148+
name: test (no rustup)
149+
runs-on: ubuntu-latest
57150
timeout-minutes: 60
151+
container: alpine:latest
58152
steps:
59153
- uses: actions/checkout@v4
60154
with:
61155
persist-credentials: false
62156
- name: Install Rust
63-
run: rustup toolchain add ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
64-
- run: rustup toolchain add nightly --no-self-update
65-
- run: echo "RUSTFLAGS=${RUSTFLAGS} -C target-feature=+crt-static" >>"${GITHUB_ENV}"
66-
if: startsWith(matrix.os, 'windows')
157+
run: apk --no-cache add bash cargo
158+
shell: sh
67159
- run: cargo test --workspace --all-features
68160
- run: |
69161
set -euxo pipefail
70162
cargo install --path . --debug
71163
cd tests/fixtures/real
72164
cargo hack check --feature-powerset --workspace
73165
cargo uninstall cargo-hack
74-
- uses: taiki-e/install-action@cargo-hack
75-
- uses: taiki-e/install-action@cargo-minimal-versions
76-
- run: cargo hack build --workspace --no-private --feature-powerset --no-dev-deps
77-
- run: cargo minimal-versions build --workspace --no-private --all-features
78-
79-
build:
80-
name: build (${{ matrix.target }})
81-
strategy:
82-
fail-fast: false
83-
matrix:
84-
# When updating this list, the reminder to update the target list in release.yml.
85-
include:
86-
- target: aarch64-unknown-linux-gnu
87-
- target: aarch64-unknown-linux-musl
88-
- target: aarch64-apple-darwin
89-
os: macos-11
90-
- target: aarch64-pc-windows-msvc
91-
os: windows-2019
92-
- target: x86_64-unknown-linux-gnu
93-
- target: x86_64-unknown-linux-musl
94-
- target: x86_64-apple-darwin
95-
os: macos-11
96-
- target: x86_64-pc-windows-msvc
97-
os: windows-2019
98-
- target: x86_64-unknown-freebsd
99-
runs-on: ${{ matrix.os || 'ubuntu-20.04' }}
100-
timeout-minutes: 60
101-
steps:
102-
- uses: actions/checkout@v4
103-
with:
104-
persist-credentials: false
105-
- name: Install Rust
106-
run: rustup update stable --no-self-update
107-
- uses: taiki-e/setup-cross-toolchain-action@v1
108-
with:
109-
target: ${{ matrix.target }}
110-
- run: echo "RUSTFLAGS=${RUSTFLAGS} -C target-feature=+crt-static" >>"${GITHUB_ENV}"
111-
if: endsWith(matrix.target, 'windows-msvc')
112-
- run: cargo build --target ${{ matrix.target }}
113-
- run: cargo build --target ${{ matrix.target }} --release
114-
# For debugging
115-
- uses: actions/upload-artifact@v3
116-
with:
117-
name: ${{ matrix.target }}
118-
path: target/${{ matrix.target }}/release/cargo-hack*
119166
120-
test-compat:
121-
name: test (1.${{ matrix.rust }})
122-
strategy:
123-
fail-fast: false
124-
matrix:
125-
rust:
126-
# cargo-hack is usually runnable with Cargo versions older than the Rust version required for installation.
127-
# When updating this, the reminder to update the minimum supported Rust version in README.md.
128-
- 26
129-
- 30
130-
- 31
131-
- 36
132-
- 39
133-
- 41
134-
runs-on: ubuntu-20.04
135-
timeout-minutes: 60
136-
steps:
137-
- uses: actions/checkout@v4
138-
with:
139-
persist-credentials: false
140-
- name: Install Rust
141-
run: rustup toolchain add nightly --no-self-update && rustup default nightly
142-
- run: CARGO_HACK_TEST_TOOLCHAIN=${{ matrix.rust }} cargo test --workspace --all-features
143-
# Remove stable toolchain to disable https://github.com/taiki-e/cargo-hack/pull/138's behavior.
144-
- run: rustup toolchain remove stable
145-
- run: CARGO_HACK_TEST_TOOLCHAIN=${{ matrix.rust }} cargo test --workspace --all-features
146-
147-
miri:
148-
runs-on: ubuntu-latest
149-
timeout-minutes: 60
150-
steps:
151-
- uses: actions/checkout@v4
152-
with:
153-
persist-credentials: false
154-
- name: Install Rust
155-
run: rustup toolchain add nightly --no-self-update --component miri && rustup default nightly
156-
- run: cargo miri test --workspace --all-features
157-
env:
158-
MIRIFLAGS: -Zmiri-strict-provenance -Zmiri-symbolic-alignment-check -Zmiri-disable-isolation
159-
RUSTDOCFLAGS: ${{ env.RUSTDOCFLAGS }} -Z randomize-layout
160-
RUSTFLAGS: ${{ env.RUSTFLAGS }} -Z randomize-layout
167+
# miri:
168+
# runs-on: ubuntu-latest
169+
# timeout-minutes: 60
170+
# steps:
171+
# - uses: actions/checkout@v4
172+
# with:
173+
# persist-credentials: false
174+
# - name: Install Rust
175+
# run: rustup toolchain add nightly --no-self-update --component miri && rustup default nightly
176+
# - run: cargo miri test --workspace --all-features
177+
# env:
178+
# MIRIFLAGS: -Zmiri-strict-provenance -Zmiri-symbolic-alignment-check -Zmiri-disable-isolation
179+
# RUSTDOCFLAGS: ${{ env.RUSTDOCFLAGS }} -Z randomize-layout
180+
# RUSTFLAGS: ${{ env.RUSTFLAGS }} -Z randomize-layout

0 commit comments

Comments
 (0)