diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml new file mode 100644 index 00000000..281ea1aa --- /dev/null +++ b/.github/workflows/build-linux.yml @@ -0,0 +1,52 @@ +name: re3 cmake (Linux) + +on: + workflow_dispatch: + pull_request: + push: + branches: [ main, master ] + release: + types: [ published ] + +jobs: + build-linux: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends \ + build-essential cmake ninja-build \ + libglfw3-dev libopenal-dev libmpg123-dev + + - name: Configure + run: | + cmake -S . -B build -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DRE3_AUDIO=OAL \ + -DLIBRW_PLATFORM=GL3 \ + -DLIBRW_GL3_GFXLIB=GLFW \ + -DRE3_WITH_OPUS=False \ + -DRE3_VENDORED_LIBRW=True \ + -DRE3_INSTALL=True + + - name: Build + run: cmake --build build --parallel $(nproc) + + - name: Create binary package (cpack) + working-directory: ./build + run: cpack -G TXZ + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: "linux-amd64-gl3-oal" + path: build/*.tar.xz + if-no-files-found: error diff --git a/.github/workflows/re3_msvc_amd64.yml b/.github/workflows/re3_msvc_amd64.yml index 547fc36f..b69b79e7 100644 --- a/.github/workflows/re3_msvc_amd64.yml +++ b/.github/workflows/re3_msvc_amd64.yml @@ -2,6 +2,11 @@ name: re3 premake amd64 build on: workflow_dispatch: + pull_request: + push: + branches: [ main, master ] + release: + types: [ published ] env: GLFW_VER: "3.3.2" diff --git a/.github/workflows/re3_msvc_x86.yml b/.github/workflows/re3_msvc_x86.yml index dce4e452..533febb9 100644 --- a/.github/workflows/re3_msvc_x86.yml +++ b/.github/workflows/re3_msvc_x86.yml @@ -2,6 +2,11 @@ name: re3 premake x86 build on: workflow_dispatch: + pull_request: + push: + branches: [ main, master ] + release: + types: [ published ] env: GLFW_VER: "3.3.2"