This repository has been archived by the owner on Jun 30, 2024. It is now read-only.
Added CMAKE support, tested on MacOS 14 and Windows 10 #7
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: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
branches: | |
- master | |
- main | |
- develop | |
jobs: | |
build-on-amd64: | |
runs-on: ubuntu-20.04 | |
name: Build release binary on amd64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install deps | |
run: | | |
sudo apt-get update | |
sudo apt-get install libsfml-dev | |
- name: Build | |
run: make build-release | |
build-on-other: | |
runs-on: ubuntu-18.04 | |
name: Build release binary on ${{ matrix.arch }} ${{ matrix.distro }} | |
strategy: | |
matrix: | |
include: | |
- arch: armv6 | |
distro: alpine_latest | |
- arch: armv7 | |
distro: alpine_latest | |
- arch: aarch64 | |
distro: alpine_latest | |
- arch: s390x | |
distro: alpine_latest | |
- arch: ppc64le | |
distro: alpine_latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Build on ${{ matrix.arch }} ${{ matrix.distro }} | |
uses: uraimo/[email protected] | |
id: runcmd | |
with: | |
arch: ${{ matrix.arch }} | |
distro: ${{ matrix.distro }} | |
install: | | |
apk add --update make | |
apk add --update g++ | |
apk add --update sfml-dev | |
run: make build-release |