Skip to content

Commit

Permalink
Pin Rust Toolchain (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn authored Aug 2, 2023
1 parent d4fd6e9 commit 5863846
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 39 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache
uses: Swatinem/rust-cache@v2
- uses: messense/maturin-action@v1
with:
manylinux: auto
Expand All @@ -49,8 +47,6 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Cache
uses: Swatinem/rust-cache@v2
- uses: messense/maturin-action@v1
with:
command: build
Expand All @@ -66,8 +62,6 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Cache
uses: Swatinem/rust-cache@v2
- uses: messense/maturin-action@v1
with:
command: build
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ on:
types:
- published

env:
CARGO_TERM_COLOR: always
# https://blog.rust-lang.org/2022/06/22/sparse-registry-testing.html
CARGO_UNSTABLE_SPARSE_REGISTRY: false
# https://doc.rust-lang.org/beta/cargo/reference/config.html#registriescrates-ioprotocol
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git

jobs:
publish:
Expand All @@ -22,8 +16,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
17 changes: 2 additions & 15 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ on:
- "src/**"
- ".github/workflows/rust.yaml"

env:
CARGO_TERM_COLOR: always
# https://blog.rust-lang.org/2022/06/22/sparse-registry-testing.html
CARGO_UNSTABLE_SPARSE_REGISTRY: false
# https://doc.rust-lang.org/beta/cargo/reference/config.html#registriescrates-ioprotocol
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -25,11 +18,5 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
- name: Build
run: cargo build
- name: Run tests
run: cargo test
# - name: Run benches
# run: cargo bench
- run: cargo build
- run: cargo test
10 changes: 0 additions & 10 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ defaults:
run:
working-directory: citiespy

env:
# https://blog.rust-lang.org/2022/06/22/sparse-registry-testing.html
CARGO_UNSTABLE_SPARSE_REGISTRY: false
# https://doc.rust-lang.org/beta/cargo/reference/config.html#registriescrates-ioprotocol
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git

jobs:
ubuntu:
runs-on: ubuntu-latest
Expand All @@ -33,8 +27,6 @@ jobs:
- uses: actions/checkout@v3

- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly

- name: Set up Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -72,8 +64,6 @@ jobs:
- uses: actions/checkout@v3

- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly

- name: Set up Python
uses: actions/setup-python@v4
Expand Down
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "nightly-2023-08-01"

0 comments on commit 5863846

Please sign in to comment.