Merge pull request #2038 from ghaerr/cross #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cross | |
on: | |
push: | |
paths: | |
- '.github/workflows/cross.yml' | |
- '!.github/workflows/ow-libc.yml' | |
- 'tools/*' | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: setup-1 | |
run: 'sudo apt-get update' | |
- name: setup-2 | |
run: 'sudo apt-get install libsdl2-dev' | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: cache | |
id: cache | |
uses: actions/cache@v1 | |
with: | |
path: cross | |
key: cross-${{ hashFiles('tools/*') }}-${{ runner.os }} | |
- name: prepare | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: 'mkdir cross' | |
- name: build | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: tools/build.sh | |
- name: prune | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: tools/prune.sh | |
- name: upload | |
if: steps.cache.outputs.cache-hit != 'true' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cross | |
path: cross |