commit 63fc39f946146ae160556122030859e5ba5e20fd parent 2441a73f475b47e741926e616115fb5f5b182989 Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Wed, 24 Apr 2024 22:59:45 +0200 create nightly build workflow Diffstat:
A | .github/workflows/nightly.yml | | | 40 | ++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 40 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml @@ -0,0 +1,40 @@ +name: Nightly + +on: + workflow_dispatch + schedule: + cron: '0 0 * * *' + +env: + BUILD_TYPE: Release + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest, macos-12, windows-2019 ] + fail-fast: true + name: ${{ matrix.os }} build + steps: + - name: Install Dependencies + if: matrix.os == 'ubuntu-latest' + run: sudo apt update && sudo apt install -y libgl1-mesa-dev xorg-dev libasound2-dev + + - uses: actions/checkout@v4 + with: + submodules: "recursive" + + - name: Set up MSVC compiler + if: matrix.os == 'windows-2019' + uses: ilammy/msvc-dev-cmd@v1 + + - name: Configure CMake + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + + - name: Build + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel 3 + + - name: Pack + working-directory: ${{github.workspace}}/build + run: cmake -P ${{github.workspace}}/scripts/pack.cmake