From 49d10326a45eac4ea5875846842e04e85815bc48 Mon Sep 17 00:00:00 2001 From: Eric Jolibois Date: Mon, 20 Jun 2022 14:37:03 +0200 Subject: [PATCH] build: force usage of nightly (#90) * chore: ignore pyenv file * fix(build): force use of nightly toolchain * ci: simplify pipeline * ci: use legacy format for rust-toolchain rust-toolchain does not support the new rust-toolchain.toml format https://github.com/actions-rs/toolchain/issues/126 --- .github/workflows/ci.yml | 12 +++--------- .gitignore | 1 + rust-toolchain | 1 + 3 files changed, 5 insertions(+), 9 deletions(-) create mode 100644 rust-toolchain diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7ee32223..de09b3aa9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,11 +30,9 @@ jobs: - uses: actions/checkout@v3 - name: install rust - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@v1.0.6 with: profile: minimal - toolchain: nightly - override: true - id: cache-rust name: cache rust @@ -91,10 +89,9 @@ jobs: - uses: actions/checkout@v3 - name: install rust - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@v1.0.6 with: profile: minimal - toolchain: nightly override: true components: rustfmt, clippy @@ -135,11 +132,9 @@ jobs: - uses: actions/checkout@v3 - name: install rust - uses: actions-rs/toolchain@v1 + uses: actions-rs/toolchain@v1.0.6 with: profile: minimal - toolchain: nightly - override: true - name: cache rust uses: Swatinem/rust-cache@v1 @@ -220,7 +215,6 @@ jobs: - name: build wheels uses: messense/maturin-action@v1 with: - rust-toolchain: nightly target: ${{ matrix.target }} manylinux: ${{ matrix.manylinux || 'auto' }} container: ${{ matrix.container }} diff --git a/.gitignore b/.gitignore index be487a04c..dcc5ba133 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /.vscode/ /env/ /env*/ +.python-version *.py[cod] *.egg-info/ build/ diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 000000000..bf867e0ae --- /dev/null +++ b/rust-toolchain @@ -0,0 +1 @@ +nightly