Build Linux binaries of each commit
This commit is contained in:
parent
1a01891a32
commit
e402e96cfa
40
.github/workflows/fox32-unstable-linux.yml
vendored
Normal file
40
.github/workflows/fox32-unstable-linux.yml
vendored
Normal 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
|
3
Makefile
3
Makefile
|
@ -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:
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user