Tweak the Luau interpreter to add support for inline type declaration… #420
Workflow file for this run
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
name: C/C++ CI | |
on: [push, workflow_dispatch] | |
concurrency: | |
group: environment-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: apt | |
run: sudo apt update && sudo apt install ninja-build liblua5.1-0-dev liblua5.2-dev liblua5.3-dev libluajit-5.1-dev libncursesw5-dev zlib1g-dev libopengl-dev libglfw3-dev libcmark-dev python3-pil libfmt-dev | |
- name: make | |
run: | | |
make -j$(nproc) | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: brew | |
run: | | |
brew install pkg-config glfw3 python3 cmark fmt coreutils make | |
brew link --overwrite python3 | |
python3 -m pip install --upgrade Pillow | |
- name: make | |
run: | | |
gmake -j$(nproc) BUILDTYPE=osx | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- name: setup WSL | |
run: | | |
curl -L https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL/releases/download/39.0.1/Fedora-Remix-for-WSL-SL_39.0.1.0_x64_arm64.msixbundle -o fedora.msixbundle | |
unzip fedora.msixbundle Fedora-Remix-for-WSL-SL_39.0.1.0_x64.msix | |
unzip Fedora-Remix-for-WSL-SL_39.0.1.0_x64.msix install.tar.gz | |
wsl --update | |
wsl --import fedora fedora install.tar.gz | |
wsl --set-default fedora | |
wsl sh -c 'dnf -y install https://github.com/rpmsphere/noarch/raw/master/r/rpmsphere-release-38-1.noarch.rpm' | |
wsl sh -c 'dnf -y install --setop=install_weak_deps=False gcc gcc-c++ mingw32-gcc mingw32-gcc-c++ mingw32-zlib-static mingw32-nsis python3-pillow' | |
- name: fix line endings | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- uses: actions/checkout@v4 | |
with: | |
path: 'wordgrinder' | |
- name: run | |
run: | | |
wsl sh -c 'make -C wordgrinder BUILDTYPE=windows -j$(nproc)' | |
- name: zip | |
run: | | |
wsl sh -c 'zip -9 wordgrinder-windows.zip wordgrinder/bin/*.exe' | |
- name: upload | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ github.event.repository.name }}.${{ github.sha }} | |
path: wordgrinder-windows.zip | |