diff --git a/.github/workflows/audit-check.yml b/.github/workflows/audit-check.yml index 332799198..100f7f20d 100644 --- a/.github/workflows/audit-check.yml +++ b/.github/workflows/audit-check.yml @@ -4,6 +4,10 @@ on: branches: - "**" +defaults: + run: + shell: bash + jobs: security_audit: runs-on: ubuntu-latest diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index cf1ad22fd..24fd5a353 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -10,6 +10,10 @@ on: branches: - "**" +defaults: + run: + shell: bash + jobs: tests: name: Unit Tests diff --git a/.github/workflows/build-crate.yml b/.github/workflows/build-crate.yml index 746095a69..4324374f5 100644 --- a/.github/workflows/build-crate.yml +++ b/.github/workflows/build-crate.yml @@ -10,6 +10,10 @@ on: branches: - "**" +defaults: + run: + shell: bash + jobs: build_crate: name: Build crate diff --git a/.github/workflows/build-npm.yml b/.github/workflows/build-npm.yml index 4679bd3c8..511902ced 100644 --- a/.github/workflows/build-npm.yml +++ b/.github/workflows/build-npm.yml @@ -10,6 +10,10 @@ on: branches: - "**" +defaults: + run: + shell: bash + jobs: build_npm: name: Build npm diff --git a/.github/workflows/build-riscv64.yml b/.github/workflows/build-riscv64.yml index 4099724be..5703d212a 100644 --- a/.github/workflows/build-riscv64.yml +++ b/.github/workflows/build-riscv64.yml @@ -10,6 +10,10 @@ on: branches: - "**" +defaults: + run: + shell: bash + permissions: id-token: write contents: read @@ -124,7 +128,6 @@ jobs: - name: List existing wheels if: env.RELEASE == 'true' - shell: sh run: | aws s3 ls s3://download.chia.net/simple/chia-rs/ > existing_wheel_list_raw cat existing_wheel_list_raw @@ -132,20 +135,17 @@ jobs: - name: List new wheels if: env.RELEASE == 'true' - shell: sh run: | (cd target/wheels/; ls chia_rs-*.whl) > new_wheel_list cat new_wheel_list | xargs -I % sh -c 'ls -l target/wheels/%' - name: Choose wheels to upload if: env.RELEASE == 'true' - shell: sh run: | grep -F -x -v -f existing_wheel_list new_wheel_list > upload_wheel_list cat upload_wheel_list - name: Upload wheels if: env.RELEASE == 'true' - shell: sh run: | cat upload_wheel_list | xargs -I % sh -c 'aws s3 cp target/wheels/% s3://download.chia.net/simple/chia-rs/' diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index f2d95d961..9664cae36 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -15,6 +15,10 @@ concurrency: group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/long_lived/')) && github.sha || '' }} cancel-in-progress: true +defaults: + run: + shell: bash + permissions: id-token: write contents: read @@ -179,7 +183,7 @@ jobs: CFLAGS: "-D__BLST_PORTABLE__" run: | py -${{ matrix.python.major-dot-minor }} -m venv venv - . .\venv\Scripts\Activate.ps1 + . ./venv/Scripts/activate maturin build -i python --release -m wheel/Cargo.toml - uses: Chia-Network/actions/create-venv@main