Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
tmewett committed Sep 10, 2023
2 parents 6e01fb4 + 58e8096 commit 90e3bb2
Show file tree
Hide file tree
Showing 71 changed files with 4,547 additions and 2,883 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Test"
on:
pull_request:
# Only run on PRs into release
branches:
- 'release'

jobs:

linux-test:
runs-on: ubuntu-20.04
steps:
- name: "Install dependencies"
run: |
sudo apt update -y
sudo apt install -y libsdl2-dev libsdl2-image-dev
- name: "Checkout sources"
uses: actions/checkout@v3

- name: "Compile"
run: |
make bin/brogue
- name: "Run regression tests on merge to release branch"
run: |
python3 test/run_regression_tests.py test/regression_test_v1_12/
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
include config.mk

cflags := -Isrc/brogue -Isrc/platform -std=c99 \
cflags := -Isrc/brogue -Isrc/platform -Isrc/variants -std=c99 \
-Wall -Wpedantic -Werror=implicit -Wno-parentheses -Wno-unused-result \
-Wformat -Werror=format-security -Wformat-overflow=0
libs := -lm
cppflags := -DDATADIR=$(DATADIR)

sources := $(wildcard src/brogue/*.c) $(addprefix src/platform/,main.c platformdependent.c null-platform.c)
sources := $(wildcard src/brogue/*.c) $(wildcard src/variants/*.c) $(addprefix src/platform/,main.c platformdependent.c null-platform.c)
objects :=

ifeq ($(SYSTEM),WINDOWS)
Expand Down Expand Up @@ -50,6 +50,10 @@ sources += $(addprefix src/platform/,web-platform.c)
cppflags += -DBROGUE_WEB
endif

ifeq ($(RAPIDBROGUE),YES)
cppflags += -DRAPID_BROGUE
endif

ifeq ($(MAC_APP),YES)
cppflags += -DSDL_PATHS
endif
Expand All @@ -76,7 +80,7 @@ clean:

escape = $(subst ','\'',$(1))
vars:
mkdir vars
mkdir -p vars
# Write the value to a temporary file and only overwrite if it's different.
vars/%: vars FORCE
@echo '$(call escape,$($*))' > vars/$*.tmp
Expand Down
Binary file modified bin/assets/tiles.bin
Binary file not shown.
Binary file modified bin/assets/tiles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions changes/dungeon-version-1.11.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the dungeon version number in the seed catalog
4 changes: 4 additions & 0 deletions changes/main-menu-rework.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Redesign the main menu to use flyouts
- Update tiles to include a left-facing triangle glyph used in the main menu
- Add a placeholder menu option for choosing the game variant
- Add a menu option for selecting the game mode (easy/normal/wizard)
1 change: 1 addition & 0 deletions changes/respiration-autoexplore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Autoexplore no longer walks through dangerous gases when wearing unidentified respiration armor.
1 change: 1 addition & 0 deletions changes/wizard-mode-default-enchant.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the default enchantment value being ignored in wizard mode.
3 changes: 3 additions & 0 deletions make/brogue.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
bin/brogue$(.exe): $(objects) vars/cflags vars/LDFLAGS vars/libs vars/objects make/brogue.mk
$(CC) $(cflags) $(LDFLAGS) -o $@ $(objects) $(libs)
# on windows, embedding the manifest modifies the executable, preventing debugging
ifeq ($(SYSTEM),WINDOWS)
ifeq ($(DEBUG),NO)
mt -manifest windows/brogue.exe.manifest '-outputresource:bin/brogue.exe;1'
endif
endif
2 changes: 1 addition & 1 deletion make/o.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$(sources:.c=.o): %.o: %.c src/brogue/Rogue.h src/brogue/IncludeGlobals.h vars/cppflags vars/cflags make/o.mk
$(sources:.c=.o): %.o: %.c src/brogue/Rogue.h src/brogue/Globals.h src/brogue/GlobalsBase.h vars/cppflags vars/cflags make/o.mk
$(CC) $(cppflags) $(cflags) -c $< -o $@
Loading

0 comments on commit 90e3bb2

Please sign in to comment.