Skip to content

Commit

Permalink
defaults: run: shell: bash
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Sep 24, 2024
1 parent 1b23017 commit f6258fe
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/audit-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
branches:
- "**"

defaults:
run:
shell: bash

jobs:
security_audit:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
branches:
- "**"

defaults:
run:
shell: bash

jobs:
tests:
name: Unit Tests
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-crate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
branches:
- "**"

defaults:
run:
shell: bash

jobs:
build_crate:
name: Build crate
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
branches:
- "**"

defaults:
run:
shell: bash

jobs:
build_npm:
name: Build npm
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-riscv64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
branches:
- "**"

defaults:
run:
shell: bash

permissions:
id-token: write
contents: read
Expand Down Expand Up @@ -124,28 +128,24 @@ 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
cat existing_wheel_list_raw | tr -s ' ' | cut -d ' ' -f 4 > existing_wheel_list
- 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/'
4 changes: 4 additions & 0 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/check-commit-signing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ concurrency:
group: ${{ github.event_name == 'pull_request' && format('{0}-{1}', github.workflow_ref, github.event.pull_request.number) || github.run_id }}
cancel-in-progress: true

defaults:
run:
shell: bash

jobs:
check-commit-signing:
name: Check commit signing
Expand Down

0 comments on commit f6258fe

Please sign in to comment.