File tree Expand file tree Collapse file tree 2 files changed +60
-16
lines changed
Expand file tree Collapse file tree 2 files changed +60
-16
lines changed Original file line number Diff line number Diff line change 1+ # ## Auto build Box64 and release its binary with Github Action
2+ name : Build and Release HydraCastleLabyrinth
3+
4+ permissions :
5+ actions : ' write'
6+
7+ on :
8+ push :
9+ branches : [ "master" ]
10+ pull_request :
11+ branches : [ "master" ]
12+
13+ defaults :
14+ run :
15+ # needed on container images which could default to sh
16+ shell : bash
17+
18+ jobs :
19+ build :
20+ strategy :
21+ fail-fast : false
22+ matrix :
23+ platform : [X64, ARM64]
24+ include :
25+ - platform : X64
26+ os : ubuntu-latest
27+
28+ - platform : ARM64
29+ os : ubuntu-22.04-arm
30+
31+ runs-on : ${{ matrix.os }}
32+ container :
33+ image : ${{ matrix.image || '' }}
34+ steps :
35+ - name : " Checkout Repository"
36+ uses : actions/checkout@v4
37+
38+ - name : " Environment preparation"
39+ run : |
40+ sudo apt-get update
41+ sudo apt-get -y install git cmake make python3 libsdl2-dev libsdl2-mixer-dev
42+
43+ - name : " Build"
44+ run : |
45+ mkdir build
46+ cd build
47+ cmake .. -DUSE_SDL2=ON
48+ make -j$(nproc) VERBOSE=1
49+
50+ - name : " Packaging Zip file"
51+ run : |
52+ cd build
53+ cp -r ../data .
54+ 7z -tzip -mx=5 a hcl.zip data hcl
55+
56+ - name : " Upload Zip File"
57+ uses : actions/upload-artifact@v4
58+ with :
59+ name : hcl-${{ matrix.type }}.zip
60+ path : build/hcl.zip
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments