blisp/.github/workflows/build.yml

67 lines
1.8 KiB
YAML
Raw Normal View History

2023-01-21 13:58:49 +00:00
name: Build
on: [push, pull_request]
jobs:
build-windows:
2023-01-21 14:14:50 +00:00
runs-on: windows-2022
2023-01-21 13:58:49 +00:00
defaults:
run:
shell: cmd
steps:
- uses: actions/checkout@v2
- uses: lukka/get-cmake@latest
- name: Build blisp tool
run: |
git submodule update --init --recursive
mkdir build
cd build
cmake .. -DBLISP_BUILD_CLI=ON -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: blisp Windows x64 build
path: |
2023-01-21 14:14:50 +00:00
build/tools/blisp/Release/blisp.exe
2023-01-21 13:58:49 +00:00
if-no-files-found: error
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: lukka/get-cmake@latest
- name: Build blisp tool
run: |
git submodule update --init --recursive
mkdir build
cd build
cmake .. -DBLISP_BUILD_CLI=ON -DCMAKE_BUILD_TYPE=Release
cmake --build .
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: blisp macOS x64 build
path: |
build/tools/blisp/blisp
if-no-files-found: error
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: lukka/get-cmake@latest
- name: Build blisp tool
run: |
git submodule update --init --recursive
mkdir build
cd build
cmake .. -DBLISP_BUILD_CLI=ON -DCMAKE_BUILD_TYPE=Release
cmake --build .
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: blisp Linux x64 build
path: |
build/tools/blisp/blisp
if-no-files-found: error