diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c91a7195..6e8c2f34 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,12 +9,15 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + RUST_TOOLCHAIN: nightly-2024-01-17 + jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly + - run: curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain "$RUST_TOOLCHAIN" - uses: actions/setup-python@v5 with: python-version: '3.11' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1279b41..a73cf728 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,6 +13,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + RUST_TOOLCHAIN: nightly-2024-01-17 + jobs: build-linux-x86_64: name: Build Linux x86_64 wheel @@ -29,7 +32,7 @@ jobs: steps: - uses: actions/checkout@v3 - - run: curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain nightly + - run: curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain "$RUST_TOOLCHAIN" - run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - run: /opt/python/${{ matrix.python-path }}/bin/python -m venv .venv - run: .venv/bin/pip install -U pip wheel maturin @@ -51,7 +54,7 @@ jobs: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v4 - - run: curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain nightly + - run: curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain ${{ env.RUST_TOOLCHAIN }} - name: Set up Python uses: actions/setup-python@v5 with: @@ -75,7 +78,7 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v4 - - run: curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain nightly + - run: curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain "$RUST_TOOLCHAIN" - run: rustup component add rust-src - name: Set up Python uses: actions/setup-python@v5 @@ -106,7 +109,7 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v4 - - run: curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain nightly + - run: curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain "$RUST_TOOLCHAIN" - run: rustup target add aarch64-apple-darwin - name: Set up Python uses: actions/setup-python@v5 @@ -131,7 +134,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain nightly + - run: curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain "$RUST_TOOLCHAIN" - name: Set up Python uses: actions/setup-python@v5 with: