Skip to content

Commit 4e1f040

Browse files
committed
Use local workflow
1 parent d39d84a commit 4e1f040

3 files changed

Lines changed: 72 additions & 0 deletions

File tree

.github/workflows/compile-test.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Compile Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
defaults:
12+
run:
13+
shell: bash
14+
15+
jobs:
16+
check:
17+
name: check
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Install dependencies
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -yqq --no-install-recommends --no-install-suggests \
24+
build-essential cmake ninja-build git ca-certificates ccache
25+
sudo pip3 install meson
26+
27+
- uses: actions/checkout@v6
28+
- name: Checkout buildscripts
29+
uses: actions/checkout@v6
30+
with:
31+
repository: EasyRPG/buildscripts
32+
path: buildscripts
33+
34+
- name: Get buildscripts commit hash
35+
id: buildscripts-hash
36+
working-directory: buildscripts
37+
run: |
38+
echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
39+
40+
- name: Cache Emscripten toolchain and libraries
41+
id: cache
42+
uses: actions/cache@v5
43+
with:
44+
path: |
45+
buildscripts/emsdk-portable
46+
buildscripts/bin
47+
buildscripts/lib
48+
buildscripts/include
49+
key: easyrpg-emscripten-${{ steps.buildscripts-hash.outputs.hash }}-${{ runner.os }}
50+
restore-keys: |
51+
easyrpg-emscripten-${{ steps.buildscripts-hash.outputs.hash }}-
52+
easyrpg-emscripten-
53+
54+
- name: Install Player dependencies
55+
if: steps.cache.outputs.cache-hit != 'true'
56+
run: bash 0_build_everything.sh
57+
working-directory: buildscripts/emscripten
58+
env:
59+
BUILD_LIBLCF: "1"
60+
61+
- run: cmake --preset yno-simd-release
62+
env:
63+
EASYRPG_BUILDSCRIPTS: "${{ github.workspace }}/buildscripts"
64+
- run: cmake --build --preset yno-simd-release
65+
66+
- uses: actions/upload-artifact@v4
67+
with:
68+
name: easyrpg-player-wasm
69+
path: build/yno-simd-release/ynoengine-simd.{html,js,wasm}
70+
if-no-files-found: warn

.github/workflows/pr_labels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
jobs:
77
update:
8+
if: false
89
permissions:
910
contents: read
1011
pull-requests: write

.github/workflows/stable-compilation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ defaults:
1919

2020
jobs:
2121
docker:
22+
if: false
2223
name: ${{ matrix.image }} (${{ matrix.os.arch }})
2324
runs-on: ${{ matrix.os.name }}
2425
container:

0 commit comments

Comments
 (0)