-
Notifications
You must be signed in to change notification settings - Fork 29
83 lines (72 loc) · 2.43 KB
/
Copy pathcompile-test.yml
File metadata and controls
83 lines (72 loc) · 2.43 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Compile Test
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
check:
name: check
if: github.repository == 'ynoproject/ynoengine'
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -yqq --no-install-recommends --no-install-suggests \
build-essential cmake ninja-build git ca-certificates ccache
sudo pip3 install meson
- uses: actions/checkout@v6
- name: Checkout buildscripts
uses: actions/checkout@v6
with:
repository: EasyRPG/buildscripts
path: buildscripts
ref: 'b3ed5f25c0aa9d3cfac39cec7d3e9e0614f68c7d' # FIXME: pre-SDL2 removal, delete when SDL/#15502 is fixed
- name: Get buildscripts commit hash
id: buildscripts-hash
working-directory: buildscripts
run: |
echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Cache Emscripten toolchain and libraries
id: cache
uses: actions/cache@v5
with:
path: |
buildscripts/emscripten/emsdk-portable
buildscripts/emscripten/bin
buildscripts/emscripten/lib
buildscripts/emscripten/include
key: easyrpg-emscripten-${{ steps.buildscripts-hash.outputs.hash }}-${{ runner.os }}
restore-keys: |
easyrpg-emscripten-${{ steps.buildscripts-hash.outputs.hash }}-
easyrpg-emscripten-
- name: Install Player dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: bash 0_build_everything.sh
working-directory: buildscripts/emscripten
env:
BUILD_LIBLCF: "1"
- run: cmake --preset yno-simd-release
env:
EASYRPG_BUILDSCRIPTS: "${{ github.workspace }}/buildscripts"
- run: cmake --build --preset yno-simd-release
- run: cmake --preset yno-release
env:
EASYRPG_BUILDSCRIPTS: "${{ github.workspace }}/buildscripts"
- run: cmake --build --preset yno-release
- uses: actions/upload-artifact@v4
with:
name: ynoengine-wasm
path: |
build/yno-simd-release/ynoengine-simd.*
build/yno-release/ynoengine.*
if-no-files-found: warn