From e402e96cfad3ea4dbbc5c6e63cfe776c5a342233 Mon Sep 17 00:00:00 2001 From: Ry Date: Wed, 26 Oct 2022 18:21:40 -0700 Subject: [PATCH] Build Linux binaries of each commit --- .github/workflows/fox32-unstable-linux.yml | 40 ++++++++++++++++++++++ Makefile | 3 +- src/screen.c | 2 -- 3 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/fox32-unstable-linux.yml diff --git a/.github/workflows/fox32-unstable-linux.yml b/.github/workflows/fox32-unstable-linux.yml new file mode 100644 index 0000000..2f503aa --- /dev/null +++ b/.github/workflows/fox32-unstable-linux.yml @@ -0,0 +1,40 @@ +on: + workflow_dispatch: + push: + branches: + - main + +name: fox32 Unstable - Linux + +jobs: + fox32-unstable-linux: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Download latest fox32rom artifact + uses: dawidd6/action-download-artifact@v2 + with: + repo: fox32-arch/fox32rom + workflow: fox32rom-unstable.yml + workflow_conclusion: success + + - name: Move fox32.rom into the root folder + run: | + mv fox32.rom/ download/ + cp download/fox32.rom ./fox32.rom + + - name: Install libsdl2-dev and vim + run: | + sudo apt update + sudo apt install -y libsdl2-dev vim + + - name: Build + run: make + + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: fox32 + path: fox32 diff --git a/Makefile b/Makefile index 366620e..57d4e8e 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,8 @@ FOX32ROM_IN = fox32.rom FOX32ROM_OUT = fox32rom.h $(TARGET): $(CFILES) $(FOX32ROM_IN) - xxd -i -n fox32rom $(FOX32ROM_IN) $(FOX32ROM_OUT) + xxd -i $(FOX32ROM_IN) $(FOX32ROM_OUT) + sed -i -e 's/fox32_rom/fox32rom/' fox32rom.h $(CC) -o $@ $(filter %.c, $^) $(CFLAGS) clean: diff --git a/src/screen.c b/src/screen.c index f42e0aa..3e71420 100644 --- a/src/screen.c +++ b/src/screen.c @@ -150,8 +150,6 @@ struct SDL_Texture *ScreenGetTexture(struct Screen *screen) { screen->Height ); - SDL_SetTextureScaleMode(screen->Texture, SDL_ScaleModeNearest); - return screen->Texture; }