diff --git a/.github/workflows/create-py-mac.yaml b/.github/workflows/create-py-mac.yaml index d2df2b89..0b355dc1 100644 --- a/.github/workflows/create-py-mac.yaml +++ b/.github/workflows/create-py-mac.yaml @@ -6,6 +6,10 @@ on: tags: - "v*" # Push events to matching wonnx-py-v* +env: + RUST_BACKTRACE: 1 + RUST_VERSION: 1.66 + jobs: build: name: Create Release @@ -16,12 +20,12 @@ jobs: python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v2 - - name: Install latest Rust nightly + - name: Install Rust uses: actions-rs/toolchain@v1 with: - toolchain: nightly-2022-01-01 + toolchain: ${{ env.RUST_VERSION }} + profile: minimal override: true - components: rustfmt, clippy - name: Setup universal2 targets for Rust run: | rustup target add aarch64-apple-darwin @@ -33,7 +37,6 @@ jobs: shell: bash run: | cd wonnx-py - rustup override set nightly-2022-01-01 - name: maturin publish uses: messense/maturin-action@v1 env: diff --git a/.github/workflows/create-py-windows.yaml b/.github/workflows/create-py-windows.yaml index 1ab6f250..444acd51 100644 --- a/.github/workflows/create-py-windows.yaml +++ b/.github/workflows/create-py-windows.yaml @@ -5,6 +5,11 @@ on: # Sequence of patterns matched against refs/tags tags: - "v*" # Push events to matching wonnx-py-v* + +env: + RUST_BACKTRACE: 1 + RUST_VERSION: 1.66 + jobs: build: name: Create Release @@ -15,12 +20,12 @@ jobs: python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v2 - - name: Install latest Rust nightly + - name: Install Rust uses: actions-rs/toolchain@v1 with: - toolchain: nightly-2022-01-01 + toolchain: ${{ env.RUST_VERSION }} + profile: minimal override: true - components: rustfmt, clippy - name: Set up Python uses: actions/setup-python@v2 with: @@ -35,8 +40,6 @@ jobs: MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }} run: | cd wonnx-py - rustup override set nightly-2022-01-01 - export RUSTFLAGS='-C target-feature=+fxsr,+sse,+sse2,+sse3' maturin publish \ --no-sdist \ --skip-existing \