2021-10-30 03:53:09 +08:00
|
|
|
name: release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
|
|
|
- 'papers/**'
|
|
|
|
- 'rfcs/**'
|
2021-11-04 03:30:30 +08:00
|
|
|
- '*.md'
|
2021-10-30 03:53:09 +08:00
|
|
|
|
|
|
|
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
|
2022-09-30 07:19:37 +08:00
|
|
|
run: cmake --build . --target Luau.Repl.CLI Luau.Analyze.CLI --config Release -j 2
|
2021-10-30 03:53:09 +08:00
|
|
|
- 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
|
2021-11-23 01:59:15 +08:00
|
|
|
|
|
|
|
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
|