Skip to content

Commit

Permalink
More actions updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak authored Nov 8, 2024
1 parent b1dd67c commit bdb9f54
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,29 +72,29 @@ jobs:
steps:
# Check out the main repo
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: main

# Check out the 32Blit API we build against
- name: Checkout 32Blit API
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: 32blit/32blit-sdk
path: 32blit-sdk

# pico sdk/extras for some builds
- name: Checkout Pico SDK
if: matrix.pico-sdk
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: raspberrypi/pico-sdk
path: pico-sdk
submodules: true

- name: Checkout Pico Extras
if: matrix.pico-sdk
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: raspberrypi/pico-extras
path: pico-extras
Expand Down Expand Up @@ -124,14 +124,14 @@ jobs:
- name: Setup Emscripten cache
if: matrix.name == 'Emscripten'
id: cache-system-libraries
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{env.EM_CACHE_FOLDER}}
key: ${{env.EM_VERSION}}-${{runner.os}}

- name: Setup Emscripten
if: matrix.name == 'Emscripten'
uses: mymindstorm/setup-emsdk@v7
uses: mymindstorm/setup-emsdk@v12
with:
version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
Expand Down Expand Up @@ -168,23 +168,13 @@ jobs:
# Push the tar file to the release
- name: Upload tar
if: github.event_name == 'release' && matrix.release-suffix != ''
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
uses: softprops/action-gh-release@v1
with:
asset_path: ${{runner.workspace}}/main/build/${{env.RELEASE_FILE}}.tar.gz
upload_url: ${{github.event.release.upload_url}}
asset_name: ${{env.RELEASE_FILE}}.tar.gz
asset_content_type: application/octet-stream
files: ${{runner.workspace}}/main/build/${{env.RELEASE_FILE}}.tar.gz

# Push the zip file to the release
- name: Upload zip
if: github.event_name == 'release' && matrix.release-suffix != ''
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
uses: softprops/action-gh-release@v1
with:
asset_path: ${{runner.workspace}}/main/build/${{env.RELEASE_FILE}}.zip
upload_url: ${{github.event.release.upload_url}}
asset_name: ${{env.RELEASE_FILE}}.zip
asset_content_type: application/zip
files: ${{runner.workspace}}/main/build/${{env.RELEASE_FILE}}.zip

0 comments on commit bdb9f54

Please sign in to comment.