Skip to content

Commit

Permalink
Add GitHub Actions CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ytfh44 committed Dec 10, 2024
1 parent 8e63db9 commit a37e991
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a37e991

Please sign in to comment.