build.yaml 3: someone kill me! (joking)
Some checks failed
Build Project / build (ubuntu-latest) (push) Failing after 7m46s
Build Project / build (windows-latest) (push) Has been cancelled

This commit is contained in:
2026-06-24 14:05:10 -04:00
parent bdb6a0aca0
commit 257be0b3c5

View File

@@ -2,32 +2,32 @@ name: Build Project
on: on:
push: push:
branches: [ "main" ] branches:
- main
pull_request: pull_request:
branches: [ "main" ] branches:
- main
jobs: jobs:
build: build:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-latest, windows-latest] os:
- ubuntu-latest
- windows-latest
```
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
# Linux dependencies
- name: Install Dependencies (Linux) - name: Install Dependencies (Linux)
if: runner.os == 'Linux' if: runner.os == 'Linux'
run: | run: |
if command -v sudo >/dev/null 2>&1; then SUDO="sudo"; else SUDO=""; fi apt-get update
apt-get install -y \
$SUDO apt-get update
$SUDO apt-get install -y \
build-essential \ build-essential \
gcc \ gcc \
g++ \ g++ \
@@ -40,30 +40,26 @@ steps:
libxi-dev \ libxi-dev \
libgl1-mesa-dev libgl1-mesa-dev
# Windows dependencies - name: Install MSYS2 and Raylib (Windows)
- name: Install MSYS2 and Raylib
if: runner.os == 'Windows' if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2 uses: msys2/setup-msys2@v2
with: with:
msystem: MINGW64 msystem: MINGW64
update: true update: true
install: >- install: >
mingw-w64-x86_64-gcc mingw-w64-x86_64-gcc
mingw-w64-x86_64-make mingw-w64-x86_64-make
mingw-w64-x86_64-raylib mingw-w64-x86_64-raylib
# Build on Linux
- name: Build (Linux) - name: Build (Linux)
if: runner.os == 'Linux' if: runner.os == 'Linux'
run: make run: make
# Build on Windows
- name: Build (Windows) - name: Build (Windows)
if: runner.os == 'Windows' if: runner.os == 'Windows'
shell: msys2 {0} shell: msys2 {0}
run: make run: make
# Upload Linux artifact
- name: Upload Linux Artifact - name: Upload Linux Artifact
if: runner.os == 'Linux' if: runner.os == 'Linux'
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
@@ -71,13 +67,9 @@ steps:
name: wrldbox-linux name: wrldbox-linux
path: wrldbox path: wrldbox
# Upload Windows artifact
- name: Upload Windows Artifact - name: Upload Windows Artifact
if: runner.os == 'Windows' if: runner.os == 'Windows'
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wrldbox-windows name: wrldbox-windows
path: | path: "*.exe"
wrldbox.exe
*.exe
```