chore(ci): use aws ec2 as runner provider for cargo builds #4817
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Build tfhe-fft | |
| name: cargo_build_tfhe_fft | |
| on: | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| CHECKOUT_TOKEN: ${{ secrets.REPO_CHECKOUT_TOKEN || secrets.GITHUB_TOKEN }} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| cargo-builds-fft: | |
| name: cargo_build_tfhe_fft/cargo-builds-fft (bpr) | |
| runs-on: ${{ matrix.runner_type }} | |
| strategy: | |
| matrix: | |
| runner_type: [ubuntu-latest, macos-latest, windows-latest] | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| with: | |
| persist-credentials: 'false' | |
| token: ${{ env.CHECKOUT_TOKEN }} | |
| - name: Install Rust | |
| uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af | |
| with: | |
| toolchain: stable | |
| override: true | |
| - name: Run pcc checks | |
| if: matrix.runner_type == 'ubuntu-latest' | |
| run: | | |
| sudo apt install -y libfftw3-dev | |
| make pcc_fft | |
| - name: Build release | |
| run: | | |
| make build_fft | |
| - name: Build release no-std | |
| run: | | |
| make build_fft_no_std |