Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 14 additions & 42 deletions .github/workflows/compile-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,62 +21,34 @@ jobs:
name: check
if: github.repository == 'ynoproject/ynoengine'
runs-on: ubuntu-latest
container:
image: ghcr.io/ynoproject/buildscripts:master
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
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

- 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"
path: ynoengine

- run: cmake --preset yno-simd-release
working-directory: ynoengine
env:
EASYRPG_BUILDSCRIPTS: "${{ github.workspace }}/buildscripts"
EASYRPG_BUILDSCRIPTS: "/root/workdir/buildscripts"
- run: cmake --build --preset yno-simd-release
working-directory: ynoengine

- run: cmake --preset yno-release
working-directory: ynoengine
env:
EASYRPG_BUILDSCRIPTS: "${{ github.workspace }}/buildscripts"
EASYRPG_BUILDSCRIPTS: "/root/workdir/buildscripts"
- run: cmake --build --preset yno-release
working-directory: ynoengine

- uses: actions/upload-artifact@v4
with:
name: ynoengine-wasm
path: |
build/yno-simd-release/ynoengine-simd.*
build/yno-release/ynoengine.*
ynoengine/build/yno-simd-release/ynoengine-simd.*
ynoengine/build/yno-release/ynoengine.*
if-no-files-found: warn
Loading