Merge branch 'main' of github.com:Nicky-D/3p-sdl2 into linux #19
Workflow file for this run
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: | |
pull_request: | |
push: | |
branches: [main, actions] | |
tags: ['v*'] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [windows-2022, macos-11, ubuntu-22.04] | |
addrsize: ["64"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Setup Linux Build Dependencies | |
if: ${{ runner.os == 'Linux' }} | |
run: sudo apt-get install ninja-build | |
- name: Run apt update | |
if: runner.os == 'Linux' | |
run: sudo apt update | |
- name: Run apt update | |
if: runner.os == 'Linux' | |
run: sudo apt upgrade | |
- name: Install required Linux packages | |
if: runner.os == 'Linux' | |
run: > | |
sudo apt install -y mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev | |
libxext-dev libibus-1.0-dev | |
fcitx-libs-dev libudev-dev libunwind-dev | |
libwayland-dev libxkbcommon-dev libpulse-dev libsndio-dev | |
- name: Setup macOS Build Dependencies | |
if: ${{ runner.os == 'macOS' }} | |
run: brew install ninja | |
- name: Setup Windows Build Dependencies | |
if: ${{ runner.os == 'Windows' }} | |
run: choco install ninja | |
- name: Build with autobuild | |
uses: secondlife/action-autobuild@v3 | |
with: | |
addrsize: ${{ matrix.addrsize }} | |
release: | |
needs: build | |
runs-on: [ubuntu-latest] | |
if: startsWith(github.ref, 'refs/tags/v') | |
steps: | |
- uses: secondlife/action-autobuild-release@v3 | |
with: | |
public: true |