Build #602
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "staging" ] | |
pull_request: | |
branches: [ "staging" ] | |
schedule: | |
- cron: "0 0 * * *" | |
env: | |
CFLAGS: -Werror | |
#USE_NET: 1 | |
jobs: | |
linux-build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build | |
run: make lib all | |
- name: Upload Artifacts | |
uses: actions/[email protected] | |
with: | |
retention-days: 5 | |
name: rvvm_linux_x86_64 | |
path: | | |
release.linux.x86_64/rvvm_x86_64 | |
release.linux.x86_64/librvvm.so | |
release.linux.x86_64/librvvm.a | |
win32-build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up MinGW | |
run: sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends gcc-mingw-w64-x86-64-win32 | |
- name: Build | |
run: make CC=x86_64-w64-mingw32-gcc all lib | |
- name: Upload Artifacts | |
uses: actions/[email protected] | |
with: | |
retention-days: 5 | |
name: rvvm_win32_x86_64 | |
path: | | |
release.windows.x86_64/rvvm_x86_64.exe | |
release.windows.x86_64/librvvm.dll | |
release.windows.x86_64/librvvm.a | |
macos-build: | |
runs-on: macos-12 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install SDL | |
run: brew install sdl12-compat | |
- name: Build | |
run: make all lib | |
- name: Upload Artifacts | |
uses: actions/[email protected] | |
with: | |
retention-days: 5 | |
name: rvvm_macos_x86_64 | |
path: | | |
release.darwin.x86_64/rvvm_x86_64 | |
release.darwin.x86_64/librvvm.so | |
release.darwin.x86_64/librvvm.a |