From a37e991d46626e2039940e6a023564f5dcff323f Mon Sep 17 00:00:00 2001 From: ybyuan <3118918283@qq.com> Date: Wed, 11 Dec 2024 00:34:04 +0800 Subject: [PATCH] Add GitHub Actions CI workflow --- .github/workflows/ci.yml | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3721300 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,55 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + include: + - os: ubuntu-latest + install: | + sudo apt-get update + sudo apt-get install -y autoconf automake libtool pkg-config + sudo apt-get install -y libsdl2-dev libvulkan-dev + - os: windows-latest + install: | + choco install autoconf automake libtool pkg-config + choco install mingw + choco install vulkan-sdk + + steps: + - uses: actions/checkout@v3 + + - name: Install dependencies + run: ${{ matrix.install }} + + - name: Generate build system + shell: bash + run: | + ./autogen.sh + + - name: Configure + shell: bash + run: | + ./configure + + - name: Build + shell: bash + run: | + make + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: doom_pp-${{ matrix.os }} + path: | + doom_pp + doom_pp.exe + if-no-files-found: ignore \ No newline at end of file