Skip to content

Commit

Permalink
Update CI workflow (#10)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
cjdsellers and davidhewitt authored Oct 24, 2024
1 parent 7785cd6 commit d5bdc3f
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- run: pip install black==24.10.0
Expand All @@ -32,7 +32,7 @@ jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
Expand All @@ -53,14 +53,15 @@ jobs:
"3.10",
"3.11",
"3.12",
"3.13",
"pypy-3.9",
]
platform:
[
{
os: "macOS-latest",
python-architecture: "x64",
rust-target: "x86_64-apple-darwin",
os: "macos-latest",
python-architecture: "arm64",
rust-target: "aarch64-apple-darwin",
},
{
os: "ubuntu-latest",
Expand Down Expand Up @@ -107,10 +108,10 @@ jobs:
extra_features: "nightly"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.platform.python-architecture }}
Expand Down Expand Up @@ -153,7 +154,7 @@ jobs:
needs: [fmt]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
Expand All @@ -167,10 +168,10 @@ jobs:
args: --all-features
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off"
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off"
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cllvm-args=--inline-threshold=0 -Clink-dead-code -Coverflow-checks=off"
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cllvm-args=--inline-threshold=0 -Clink-dead-code -Coverflow-checks=off"
- uses: actions-rs/[email protected]
id: coverage
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v4
with:
file: ${{ steps.coverage.outputs.report }}

0 comments on commit d5bdc3f

Please sign in to comment.