mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
This was clearly a better idea as it cleans up CMakeLists.txt and allows us to add more functionality in the future that's specific to web.
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- 'papers/**'
|
|
- 'rfcs/**'
|
|
- '*.md'
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu, macos, windows]
|
|
name: ${{matrix.os}}
|
|
runs-on: ${{matrix.os}}-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: configure
|
|
run: cmake . -DCMAKE_BUILD_TYPE=Release
|
|
- name: build
|
|
run: cmake --build . --target Luau.Repl.CLI Luau.Analyze.CLI --config Release
|
|
- uses: actions/upload-artifact@v2
|
|
if: matrix.os != 'windows'
|
|
with:
|
|
name: luau-${{matrix.os}}
|
|
path: luau*
|
|
- uses: actions/upload-artifact@v2
|
|
if: matrix.os == 'windows'
|
|
with:
|
|
name: luau-${{matrix.os}}
|
|
path: Release\luau*.exe
|
|
|
|
web:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
repository: emscripten-core/emsdk
|
|
path: emsdk
|
|
- name: emsdk install
|
|
run: |
|
|
cd emsdk
|
|
./emsdk install latest
|
|
./emsdk activate latest
|
|
- name: make
|
|
run: |
|
|
source emsdk/emsdk_env.sh
|
|
emcmake cmake . -DLUAU_BUILD_WEB=ON -DCMAKE_BUILD_TYPE=Release
|
|
make -j2 Luau.Web
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: Luau.Web.js
|
|
path: Luau.Web.js
|