Build Linux binaries of each commit

This commit is contained in:
Ry 2022-10-26 18:21:40 -07:00
parent 1a01891a32
commit e402e96cfa
3 changed files with 42 additions and 3 deletions

View File

@ -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

View File

@ -16,7 +16,8 @@ FOX32ROM_IN = fox32.rom
FOX32ROM_OUT = fox32rom.h FOX32ROM_OUT = fox32rom.h
$(TARGET): $(CFILES) $(FOX32ROM_IN) $(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) $(CC) -o $@ $(filter %.c, $^) $(CFLAGS)
clean: clean:

View File

@ -150,8 +150,6 @@ struct SDL_Texture *ScreenGetTexture(struct Screen *screen) {
screen->Height screen->Height
); );
SDL_SetTextureScaleMode(screen->Texture, SDL_ScaleModeNearest);
return screen->Texture; return screen->Texture;
} }