Skip to content

Commit

Permalink
Update actions versions and test newer python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
datagutten committed Jul 7, 2024
1 parent 75ef04f commit 78887f4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,36 +17,36 @@ jobs:

steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Use Node.js 14.x
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 14.x

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Cache data
uses: actions/cache@v2
uses: actions/cache@v4
id: iso
with:
path: build_scripts/iso/mullebil_${{ matrix.language }}.iso
key: game-iso-${{ matrix.language }}-${{ hashFiles('build_scripts/iso/mullebil_*.iso') }}
restore-keys: game-iso-${{ matrix.language }}-

- name: Cache binaries
uses: actions/cache@v2
uses: actions/cache@v4
id: bin
with:
path: bin
key: bin-${{ hashFiles('bin/*') }}
restore-keys: bin-

- name: Cache APT packages
uses: actions/cache@v2
uses: actions/cache@v4
id: apt
with:
path: /tmp/apt
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
- name: Build assets
run: python build_scripts/build.py ${{ matrix.language }} assets

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.language }}
path: dist
10 changes: 5 additions & 5 deletions .github/workflows/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,26 @@ jobs:
fail-fast: false
matrix:
node-version: [ 16, 18, 20 ]
python-version: [ 3.8, 3.9 ]
python-version: [ "3.9", "3.10", "3.12" ]
os: [ ubuntu-latest, windows-latest ]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2
- uses: actions/cache@v4
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
Expand All @@ -46,7 +46,7 @@ jobs:
${{ runner.os }}-node-
- name: Cache binaries
uses: actions/cache@v2
uses: actions/cache@v4
id: bin
with:
path: bin
Expand Down

0 comments on commit 78887f4

Please sign in to comment.