Build #1482
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 | |
jobs: | |
linux-build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Install libX11 | |
run: sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends libx11-dev libxext-dev | |
- name: Build | |
run: make lib all | |
- name: Run RISC-V Tests | |
run: timeout 600 make lib all test | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4.3.1 | |
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_static.a | |
win32-build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
- 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 lib all | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4.3.1 | |
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_static.a | |
macos-build: | |
runs-on: macos-12 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Install SDL | |
run: brew install sdl12-compat | |
- name: Build | |
run: make lib all | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4.3.1 | |
with: | |
retention-days: 5 | |
name: rvvm_macos_x86_64 | |
path: | | |
release.darwin.x86_64/rvvm_x86_64 | |
release.darwin.x86_64/librvvm.dylib | |
release.darwin.x86_64/librvvm_static.a |