Skip to content

Commit e606932

Browse files
committed
Removed travis CI script and add github action one
1 parent 229369c commit e606932

File tree

2 files changed

+60
-16
lines changed

2 files changed

+60
-16
lines changed

.github/workflows/release.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)