2021-10-29 20:53:09 +01:00
|
|
|
name: release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
|
|
|
- 'papers/**'
|
|
|
|
- 'rfcs/**'
|
2021-11-03 19:30:30 +00:00
|
|
|
- '*.md'
|
2021-10-29 20:53:09 +01: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
|
|
|
|
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
|