mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
when this workflow is on the main branch, it'll be possible to start workflows manually, so we'll use that to test prs
65 lines
2 KiB
YAML
65 lines
2 KiB
YAML
name: Build coop
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ dev ]
|
|
|
|
jobs:
|
|
build-ubuntu:
|
|
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[build]') }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install -y build-essential git python3 libglew-dev libsdl2-dev libz-dev libcurl4-openssl-dev
|
|
|
|
- name: Build the game
|
|
run: make -j$(nproc)
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: sm64coopdx-ubuntu
|
|
path: ./build/us_pc/sm64coopdx
|
|
build-windows:
|
|
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[build]') }}
|
|
runs-on: windows-latest
|
|
defaults:
|
|
run:
|
|
shell: msys2 {0}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
uses: msys2/setup-msys2@v2
|
|
with:
|
|
msystem: mingw64
|
|
update: true
|
|
install: >
|
|
unzip
|
|
make
|
|
git
|
|
mingw-w64-i686-gcc
|
|
mingw-w64-x86_64-gcc
|
|
mingw-w64-i686-glew
|
|
mingw-w64-x86_64-glew
|
|
mingw-w64-i686-SDL2
|
|
mingw-w64-i686-SDL
|
|
mingw-w64-x86_64-SDL2
|
|
mingw-w64-x86_64-SDL
|
|
python3
|
|
|
|
- name: Build the game
|
|
run: make -j$(nproc)
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: sm64coopdx-windows
|
|
path: ./build/us_pc/sm64coopdx.exe
|