update_buffer_object: return nil rather than builtin error #21
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: Release | |
on: | |
push: | |
tags: | |
- "v*.*" | |
jobs: | |
build-windows: | |
name: Release Windows | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
- name: build | |
working-directory: dev/lobster | |
run: msbuild.exe lobster.sln /p:Configuration=Release /p:Platform=x64 | |
- name: test | |
run: bin/lobster.exe tests/unittest.lobster | |
- name: Zip | |
run: powershell Compress-Archive -Path bin, data, docs, modules, samples, tests, README.md -DestinationPath lobster_windows_release.zip | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
name: Release ${{ github.ref_name }} | |
files: | | |
lobster_windows_release.zip | |
build-linux: | |
name: Release Linux | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
cxx: [clang++-14] | |
include: | |
- cxx: clang++-14 | |
cc: clang-14 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: apt update | |
run: sudo apt-get -o Acquire::Retries=3 update | |
- name: install opengl | |
run: sudo apt-get -o Acquire::Retries=3 install mesa-common-dev libgl1-mesa-dev libgl1-mesa-glx | |
- name: cmake | |
working-directory: dev | |
run: CXX=${{ matrix.cxx }} CC=${{ matrix.cc }} cmake -DCMAKE_BUILD_TYPE=Release -DLOBSTER_WERROR=ON . | |
- name: build | |
working-directory: dev | |
run: make -j4 | |
- name: test | |
run: bin/lobster tests/unittest.lobster | |
- name: Zip | |
run: | | |
rm -f bin/*.exe bin/*.dll | |
zip -r lobster_linux_release.zip bin data docs modules samples tests README.md | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
name: Release ${{ github.ref_name }} | |
files: | | |
lobster_linux_release.zip | |
build-mac: | |
name: Release Mac | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: macos-12 | |
artifact_name: lobster_osx_x64_release.zip | |
asset_name: Release ${{ github.ref_name }} for macOS (X64 Intel) | |
- os: macos-14 | |
artifact_name: lobster_osx_arm_release.zip | |
asset_name: Release ${{ github.ref_name }} for macOS (Apple ARM Silicon) | |
steps: | |
- uses: actions/checkout@v1 | |
- name: cmake | |
working-directory: dev | |
run: sh build_osx.sh | |
- name: build | |
working-directory: dev/xcode-cmake | |
run: xcodebuild -toolchain clang -configuration Release -target lobster | |
- name: test | |
run: bin/lobster tests/unittest.lobster | |
- name: Zip | |
run: | | |
rm -f bin/*.exe bin/*.dll | |
zip -r ${{ matrix.artifact_name }} bin data docs modules samples tests README.md | |
- name: Release | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: ${{ matrix.asset_name }} | |
files: ${{ matrix.artifact_name }} |