Skip to content

Commit d5bdc3f

Browse files
Update CI workflow (#10)
* Update CI workflow * Adjust MSRV and brew install gettext * Fix rust version * Adjust gettext dependency install * Revert redundant gettext install * Try aarch64 for macOS runner * Set `DYLD_LIBRARY_PATH` for macOS * Fix warnings * Update python-version list * Update python-version list * Update build platforms * Revert MSRV to 1.63.0 --------- Co-authored-by: David Hewitt <[email protected]>
1 parent 7785cd6 commit d5bdc3f

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
fmt:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v3
19-
- uses: actions/setup-python@v4
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-python@v5
2020
with:
2121
python-version: "3.10"
2222
- run: pip install black==24.10.0
@@ -32,7 +32,7 @@ jobs:
3232
clippy:
3333
runs-on: ubuntu-latest
3434
steps:
35-
- uses: actions/checkout@v3
35+
- uses: actions/checkout@v4
3636
- uses: dtolnay/rust-toolchain@stable
3737
with:
3838
toolchain: stable
@@ -53,14 +53,15 @@ jobs:
5353
"3.10",
5454
"3.11",
5555
"3.12",
56+
"3.13",
5657
"pypy-3.9",
5758
]
5859
platform:
5960
[
6061
{
61-
os: "macOS-latest",
62-
python-architecture: "x64",
63-
rust-target: "x86_64-apple-darwin",
62+
os: "macos-latest",
63+
python-architecture: "arm64",
64+
rust-target: "aarch64-apple-darwin",
6465
},
6566
{
6667
os: "ubuntu-latest",
@@ -107,10 +108,10 @@ jobs:
107108
extra_features: "nightly"
108109

109110
steps:
110-
- uses: actions/checkout@v3
111+
- uses: actions/checkout@v4
111112

112113
- name: Set up Python ${{ matrix.python-version }}
113-
uses: actions/setup-python@v4
114+
uses: actions/setup-python@v5
114115
with:
115116
python-version: ${{ matrix.python-version }}
116117
architecture: ${{ matrix.platform.python-architecture }}
@@ -153,7 +154,7 @@ jobs:
153154
needs: [fmt]
154155
runs-on: ubuntu-latest
155156
steps:
156-
- uses: actions/checkout@v3
157+
- uses: actions/checkout@v4
157158
- uses: dtolnay/rust-toolchain@stable
158159
with:
159160
toolchain: nightly
@@ -167,10 +168,10 @@ jobs:
167168
args: --all-features
168169
env:
169170
CARGO_INCREMENTAL: 0
170-
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off"
171-
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off"
171+
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cllvm-args=--inline-threshold=0 -Clink-dead-code -Coverflow-checks=off"
172+
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cllvm-args=--inline-threshold=0 -Clink-dead-code -Coverflow-checks=off"
172173
- uses: actions-rs/[email protected]
173174
id: coverage
174-
- uses: codecov/codecov-action@v1
175+
- uses: codecov/codecov-action@v4
175176
with:
176177
file: ${{ steps.coverage.outputs.report }}

0 commit comments

Comments
 (0)