Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 68 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
submodules: recursive

# Set Git config
Expand All @@ -33,14 +32,6 @@ jobs:
- name: Prepare
run: cp -R /orig .

# Build and link non-matching files to verify lack of errors
- name: Build non-matching
run: |
python configure.py --non-matching \
--version ${{ matrix.version }} \
--binutils /binutils --compilers /compilers
ninja

# Build the project
- name: Build
run: |
Expand All @@ -67,11 +58,76 @@ jobs:
build/${{ matrix.version }}/report.json
build/${{ matrix.version }}/progress-commit.json

build-non-matching:
# This is a *private* build container.
# See docs/github_actions.md for more information.
container: ghcr.io/bfbbdecomp/bfbb-build:main

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Add game versions here
version: [GQPE78]

steps:
# Checkout the repository
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

# Set Git config
- name: Git config
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

# Copy the original files to the workspace
- name: Prepare
run: cp -R /orig .

# Build and link non-matching files to verify lack of errors
- name: Build non-matching
run: |
python configure.py --non-matching \
--version ${{ matrix.version }} \
--binutils /binutils --compilers /compilers
ninja

build-previous:
# This is a *private* build container.
# See docs/github_actions.md for more information.
container: ghcr.io/bfbbdecomp/bfbb-build:main

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Add game versions here
version: [GQPE78]

steps:
# Checkout the repository
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
submodules: recursive

# Set Git config
- name: Git config
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

# Copy the original files to the workspace
- name: Prepare
run: cp -R /orig .

# Generate report for previous commit
- name: Generate previous report
continue-on-error: true
run: |
git checkout HEAD^
python configure.py --version ${{ matrix.version }} \
--binutils /binutils --compilers /compilers
ninja build/${{ matrix.version }}/report.json

# Upload previous report
Expand All @@ -85,7 +141,9 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
needs: build
needs:
- build
- build-previous
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout website code
Expand Down