Build FNA Native Libraries #6
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 FNA Native Libraries | |
on: | |
workflow_dispatch: | |
schedule: | |
# Let's do it every month on the 1st at 10:30 AM CST (aka 15:30 UTC) | |
- cron: '30 15 1 * *' | |
jobs: | |
# Build on all platforms (Windows, Linux, macOS) | |
build: | |
name: Build Libraries on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1 | |
bundler-cache: true | |
- name: Checkout libraries | |
run: | | |
bundle exec ruby checkout.rb | |
- name: Build SDL2 | |
uses: libsdl-org/setup-sdl@v1 | |
with: | |
version: 2-latest | |
build-type: Release | |
- name: Build libraries | |
run: | | |
bundle exec ruby build.rb |