Skip to content
Open
Show file tree
Hide file tree
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
60 changes: 60 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: build

on:
push:
pull_request:

jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install SDL2
run: |
sudo apt-get update
sudo apt-get install -y libsdl2-dev

- name: Build
run: make

- name: Smoke test
run: SDL_VIDEODRIVER=dummy ./cliffs --smoke-test

windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: >-
make
pkgconf
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-SDL2

- name: Build
shell: msys2 {0}
run: make CC=gcc

- name: Smoke test
shell: msys2 {0}
run: SDL_VIDEODRIVER=dummy ./cliffs.exe --smoke-test

- name: Package Windows app
shell: msys2 {0}
run: |
mkdir -p dist/cliffs
cp cliffs.exe dist/cliffs/
cp /ucrt64/bin/SDL2.dll dist/cliffs/
cp -r assets levels dist/cliffs/

- name: Upload Windows app
uses: actions/upload-artifact@v4
with:
name: cliffs-windows
path: dist/cliffs
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,8 @@ ENV/

# Rope project settings
.ropeproject

# Native SDL build outputs
cliffs
*.o
*.dSYM/
234 changes: 0 additions & 234 deletions CLIFFS1/AT.C

This file was deleted.

Loading
Loading