mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Reusable workflow for legobin (#555)
This commit is contained in:
34
.github/workflows/unittest.yml
vendored
34
.github/workflows/unittest.yml
vendored
@@ -3,9 +3,14 @@ name: Test
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
fetch-deps:
|
||||
name: Download original binaries
|
||||
uses: ./.github/workflows/legobin.yml
|
||||
|
||||
pytest-win:
|
||||
name: 'Python Windows'
|
||||
runs-on: windows-latest
|
||||
needs: fetch-deps
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -18,20 +23,6 @@ jobs:
|
||||
path: legobin
|
||||
key: legobin
|
||||
|
||||
- name: Download original island binares
|
||||
if: ${{ !steps.cache-original-binaries.outputs.cache-hit }}
|
||||
run: |
|
||||
C:\msys64\usr\bin\wget.exe https://legoisland.org/download/ISLE.EXE --directory-prefix=legobin
|
||||
C:\msys64\usr\bin\wget.exe https://legoisland.org/download/LEGO1.DLL --directory-prefix=legobin
|
||||
|
||||
- name: Cache original binaries
|
||||
if: ${{ !steps.cache-original-binaries.outputs.cache-hit }}
|
||||
uses: actions/cache/save@v3
|
||||
with:
|
||||
enableCrossOsArchive: true
|
||||
path: legobin
|
||||
key: legobin
|
||||
|
||||
- name: Install python libraries
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -45,6 +36,7 @@ jobs:
|
||||
pytest-ubuntu:
|
||||
name: 'Python Linux'
|
||||
runs-on: ubuntu-latest
|
||||
needs: fetch-deps
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -57,20 +49,6 @@ jobs:
|
||||
path: legobin
|
||||
key: legobin
|
||||
|
||||
- name: Download original island binares
|
||||
if: ${{ !steps.cache-original-binaries.outputs.cache-hit }}
|
||||
run: |
|
||||
wget https://legoisland.org/download/ISLE.EXE --directory-prefix=legobin
|
||||
wget https://legoisland.org/download/LEGO1.DLL --directory-prefix=legobin
|
||||
|
||||
- name: Cache original binaries
|
||||
if: ${{ !steps.cache-original-binaries.outputs.cache-hit }}
|
||||
uses: actions/cache/save@v3
|
||||
with:
|
||||
enableCrossOsArchive: true
|
||||
path: legobin
|
||||
key: legobin
|
||||
|
||||
- name: Install python libraries
|
||||
shell: bash
|
||||
run: |
|
||||
|
Reference in New Issue
Block a user