Skip to content

Commit

Permalink
ci: update rust: nightly-2022-08-16 (#4482)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Aug 18, 2022
1 parent ec6ec1b commit e5cff0b
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/deploy_manylinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ls -la
rm py-polars/README.md
cp README.md py-polars/README.md
cd py-polars
rustup override set nightly-2022-07-24
rustup override set nightly-2022-08-16
export RUSTFLAGS='-C target-feature=+fxsr,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma'

# first the default release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install latest Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-07-24
toolchain: nightly-2022-08-16
override: true
components: rustfmt, clippy
- name: Set up Python
Expand All @@ -33,7 +33,7 @@ jobs:
source venv/bin/activate
pip install -r py-polars/build.requirements.txt
cd py-polars
rustup override set nightly-2022-07-24 && RUSTFLAGS="-C embed-bitcode" maturin develop --release -- -C codegen-units=8 -C lto=thin -C target-cpu=native
rustup override set nightly-2022-08-16 && RUSTFLAGS="-C embed-bitcode" maturin develop --release -- -C codegen-units=8 -C lto=thin -C target-cpu=native
cd tests/db-benchmark
Rscript -e 'install.packages("data.table", repos="https://Rdatatable.github.io/data.table")'
Rscript groupby-datagen.R 1e7 1e2 5 0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-07-24
toolchain: nightly-2022-08-16
override: true
- uses: Swatinem/rust-cache@v1
- name: Install dependencies
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Install latest Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-07-24
toolchain: nightly-2022-08-16
override: true
components: rustfmt, clippy, miri
- name: Cache Cargo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
cache-dependency-path: "py-polars/build.requirements.txt"
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-07-24
toolchain: nightly-2022-08-16
override: true
profile: minimal
components: llvm-tools-preview
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/create-js-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
# target: aarch64-unknown-linux-musl
# docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
# build: |-
# rustup toolchain install $(cat ./rust-toolchain)
# rustup toolchain install $(cat ./rust-toolchain.toml)
# rustup target add aarch64-unknown-linux-musl
# yarn build --target=aarch64-unknown-linux-musl
# /aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip polars/*.node
Expand All @@ -112,8 +112,8 @@ jobs:
cache: yarn
cache-dependency-path: nodejs-polars/yarn.lock
architecture: ${{ matrix.settings.architecture }}
- name: Copy rust-toolchain to root
run: cp rust-toolchain ..
- name: Copy rust-toolchain.toml to root
run: cp rust-toolchain.toml ..
- name: Install
uses: actions-rs/toolchain@v1
if: ${{ !matrix.settings.docker }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-py-mac-universal2-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install latest Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-07-24
toolchain: nightly-2022-08-16
override: true
components: rustfmt, clippy
- name: Setup universal2 targets for Rust
Expand All @@ -35,7 +35,7 @@ jobs:
rm py-polars/README.md
cp README.md py-polars/README.md
cd py-polars
rustup override set nightly-2022-07-24
rustup override set nightly-2022-08-16
- name: maturin publish
uses: messense/maturin-action@v1
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-py-release-manylinux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
env:
MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
with:
rust-toolchain: nightly-2022-07-24
rust-toolchain: nightly-2022-08-16
# don't use `2_17` it does not work: https://github.com/pola-rs/polars/runs/6107328960
manylinux: '2_24'
target: aarch64-unknown-linux-gnu
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-py-release-windows-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install latest Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-07-24
toolchain: nightly-2022-08-16
override: true
components: rustfmt, clippy
- name: Set up Python
Expand All @@ -37,7 +37,7 @@ jobs:
rm py-polars/README.md
cp README.md py-polars/README.md
cd py-polars
rustup override set nightly-2022-07-24
rustup override set nightly-2022-08-16
export RUSTFLAGS='-C target-feature=+fxsr,+sse,+sse2,+sse3'
maturin publish \
--no-sdist \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install latest Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-07-24
toolchain: nightly-2022-08-16
override: true
components: rustfmt, clippy
- name: Set up Node
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install latest Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-07-24
toolchain: nightly-2022-08-16
override: true
components: rustfmt, clippy
- name: Set up Python
Expand All @@ -36,7 +36,7 @@ jobs:
blackdoc --check .
isort --check .
pyupgrade --py37-plus `find . -name "*.py" -type f`
rustup override set nightly-2022-07-24 && cargo fmt --all -- --check
rustup override set nightly-2022-08-16 && cargo fmt --all -- --check
cd ..
- name: Run linting
run: |
Expand All @@ -47,7 +47,7 @@ jobs:
- name: Run tests
run: |
export RUSTFLAGS="-C debuginfo=0"
cd py-polars && rustup override set nightly-2022-07-24 && make venv && make test-with-cov
cd py-polars && rustup override set nightly-2022-08-16 && make venv && make test-with-cov
cargo clippy
- name: Check doc examples
run: |
Expand All @@ -69,7 +69,7 @@ jobs:
- name: Install latest Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-07-24
toolchain: nightly-2022-08-16
override: true
components: rustfmt, clippy
- name: Set up Python
Expand All @@ -87,7 +87,7 @@ jobs:
blackdoc --check .
isort --check .
pyupgrade --py37-plus `find . -name "*.py" -type f`
rustup override set nightly-2022-07-24 && cargo fmt --all -- --check
rustup override set nightly-2022-08-16 && cargo fmt --all -- --check
cd ..
- name: Run linting
run: |
Expand All @@ -99,7 +99,7 @@ jobs:
- name: Run tests
run: |
export RUSTFLAGS="-C debuginfo=0"
cd py-polars && rustup override set nightly-2022-07-24 && make venv && make test-with-cov
cd py-polars && rustup override set nightly-2022-08-16 && make venv && make test-with-cov
cargo clippy
- name: Check doc examples
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-windows-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install latest Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-07-24
toolchain: nightly-2022-08-16
override: true
components: rustfmt
- name: Set up Python
Expand All @@ -29,7 +29,7 @@ jobs:
shell: bash
run: |
export RUSTFLAGS="-C debuginfo=0"
cd py-polars && rustup override set nightly-2022-07-24 && make build-and-test-no-venv
cd py-polars && rustup override set nightly-2022-08-16 && make build-and-test-no-venv
# test if we can import polars without any requirements
- name: Import polars
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Install latest Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-07-24
toolchain: nightly-2022-08-16
override: true
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v1
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fmt_toml:

coverage:
@bash -c "\
rustup override set nightly-2022-07-24; \
rustup override set nightly-2022-08-16; \
source <(cargo llvm-cov show-env --export-prefix); \
export CARGO_TARGET_DIR=\$$CARGO_LLVM_COV_TARGET_DIR; \
export CARGO_INCREMENTAL=1; \
Expand Down
1 change: 0 additions & 1 deletion rust-toolchain

This file was deleted.

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-2022-08-16"

0 comments on commit e5cff0b

Please sign in to comment.