From 46c6895a4c5a400ba3e3de008ac09e55bc82c5aa Mon Sep 17 00:00:00 2001 From: Alexander Klingenbeck Date: Tue, 23 May 2023 22:59:58 +0200 Subject: [PATCH] Create weekly.yml --- .github/workflows/weekly.yml | 76 ++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .github/workflows/weekly.yml diff --git a/.github/workflows/weekly.yml b/.github/workflows/weekly.yml new file mode 100644 index 0000000..3682495 --- /dev/null +++ b/.github/workflows/weekly.yml @@ -0,0 +1,76 @@ +name: Weekly Build + +on: + schedule: + - cron: "0 3 * * 0" + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +jobs: + build-linux: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - name: Install libs + run: | + sudo apt-get update -qq + sudo apt-get install gcc-multilib + sudo apt-get install -y --no-install-recommends libglfw3 libglfw3-dev libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxext-dev libxfixes-dev + + - 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}} + + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: rayjs-linux + path: rayjs + + build-macos: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - 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}} + + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: rayjs-macos + path: rayjs + + build-windows: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - name: Configure CMake + run: cmake -G "MinGW Makefiles" -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + + - name: Build + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: rayjs-windows + path: rayjs.exe