-
Notifications
You must be signed in to change notification settings - Fork 108
49 lines (38 loc) · 1023 Bytes
/
cross.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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