feat(interface): update bindings #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: | |
push: | |
branches: ["**"] | |
name: Build | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
container: greyltc/archlinux-aur | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ["cpp"] | |
steps: | |
- name: 📦 Checkout | |
uses: actions/checkout@v3 | |
- name: ⬇️ Install build dependencies | |
run: "pacman --noconfirm -Syu base-devel cmake gcc git make qt5-base qt5-webchannel qt5-webengine yarn gtk3" | |
- name: 🖼️ Build Frontend | |
run: > | |
cd interface | |
&& yarn | |
&& yarn build | |
- name: 🛠️ Compile | |
run: > | |
mkdir build && cd build | |
&& cmake .. | |
&& cmake --build . --config Release | |
- name: 🆙 Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: solar2d-viewer.linux | |
path: | | |
build/ | |
build-windows: | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ["cpp"] | |
steps: | |
- name: 📦 Checkout | |
uses: actions/checkout@v3 | |
- name: 🏗️ Setup Node | |
uses: actions/setup-node@v3 | |
- name: 🖼️ Build Frontend | |
run: > | |
cd interface | |
&& rm yarn.lock | |
&& yarn | |
&& yarn build | |
- name: 🛠️ Compile | |
run: > | |
mkdir build && cd build | |
&& cmake .. | |
&& cmake --build . --config Release | |
- name: 🆙 Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: solar2d-viewer.windows | |
path: | | |
build/Release |