-
-
Notifications
You must be signed in to change notification settings - Fork 27
51 lines (49 loc) · 1.33 KB
/
test_engine.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
50
51
name: Build Engine
on:
pull_request:
paths:
- 'engines/**'
jobs:
findengine:
runs-on: ubuntu-latest
outputs:
engine: ${{ steps.findname.outputs.engine }}
container: ${{ steps.findname.outputs.container }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Find Engine Name
id: findname
uses: luxtorpeda-dev/action-build-get-engine-name@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
build:
runs-on: ubuntu-latest
needs: findengine
container:
image: ${{ needs.findengine.outputs.container }}
volumes:
- /usr/share/dotnet:/gh/dotnet
- /opt/ghc:/gh/ghc
- /usr/local/share/boost:/gh/boost
- /usr/local/lib/android:/gh/android
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cleanup GH Environment
run: |
df -h
sudo rm -rf /gh/dotnet/*
sudo rm -rf /gh/ghc/*
sudo rm -rf /gh/boost/*
sudo rm -rf /gh/android/*
df -h
- name: Build
run: ./common/start_build.sh ${{needs.findengine.outputs.engine}}
- name: Package
run: ./common/package.sh ${{needs.findengine.outputs.engine}}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist