Skip to content

Commit

Permalink
Update workflows to use new actions (#452)
Browse files Browse the repository at this point in the history
* Update to actions/checkout@v4

* Update more workflows

* Use upload-artifact@v4

* set upload overwrite

* experimenting with new upload/download stuff
  • Loading branch information
emlowe committed Mar 15, 2024
1 parent 4853d33 commit 96ae848
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-blst-nightly.yml
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Ubuntu build C++ and test blst at origin/main
if: startsWith(matrix.os, 'ubuntu')
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/build-test-riscv64.yml
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand All @@ -48,7 +48,8 @@ jobs:
'
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: packages
name: packages-${{ matrix.os }}
path: ./dist
overwrite: true
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yaml
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Collect coverage data
run: |
sudo apt-get update
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: chia-network/actions/setup-python@main
with:
Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/build-wheels.yml
Expand Up @@ -100,7 +100,7 @@ jobs:
uses: Chia-Network/actions/clean-workspace@main

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -128,10 +128,11 @@ jobs:
pipx run --spec='cibuildwheel==2.16.2' cibuildwheel --output-dir dist 2>&1

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: packages
name: packages-${{ matrix.os.name }}-${{ matrix.python.major-dot-minor }}-${{ matrix.arch.name }}
path: ./dist
overwrite: true

build-sdist:
name: sdist - ${{ matrix.os.name }} ${{ matrix.python.major-dot-minor }} ${{ matrix.arch.name }}
Expand All @@ -157,7 +158,7 @@ jobs:
uses: Chia-Network/actions/clean-workspace@main

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -171,10 +172,11 @@ jobs:
python -m build --sdist --outdir dist .
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: packages
name: packages-sdist-${{ matrix.os.name }}-${{ matrix.python.major-dot-minor }}-${{ matrix.arch.name }}
path: ./dist
overwrite: true

check:
name: Check - ${{ matrix.os.name }} ${{ matrix.python.major-dot-minor }} ${{ matrix.arch.name }}
Expand All @@ -200,7 +202,7 @@ jobs:
uses: Chia-Network/actions/clean-workspace@main

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -246,7 +248,7 @@ jobs:
uses: Chia-Network/actions/clean-workspace@main

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -260,10 +262,11 @@ jobs:
python-version: ${{ matrix.python.major-dot-minor }}

- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: packages
pattern: packages*
path: ./dist
merge-multiple: true

- name: Publish distribution to PyPI
if: env.RELEASE == 'true'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: After Prepare (cpp)
if: ${{ matrix.language == 'cpp' }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/js-bindings.yml
Expand Up @@ -19,7 +19,7 @@ jobs:
js_bindings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -28,12 +28,12 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16

- name: Install emsdk
uses: mymindstorm/setup-emsdk@v12
uses: mymindstorm/setup-emsdk@v14

- name: Get the version
id: version_info
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale-issue.yml
Expand Up @@ -8,7 +8,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: chia-network/stale@main
- uses: actions/stale@v9
with:
operations-per-run: 10000
ascending: true
Expand Down

0 comments on commit 96ae848

Please sign in to comment.