Fetch entire history when building source #434
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 Apricots | |
on: | |
pull_request: | |
branches: | |
- runway | |
push: | |
branches: | |
- runway | |
jobs: | |
build-native: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Linux dependencies | |
if: startsWith(matrix.os, 'ubuntu-') | |
run: | | |
sudo apt-get update | |
sudo apt-get install libsdl2-dev autotools-dev libopenal-dev libalure-dev clang-format cppcheck | |
- name: Install Mac dependencies | |
if: startsWith(matrix.os, 'macos-') | |
run: | | |
brew install sdl2 openal-soft alure autoconf automake | |
- name: Build | |
env: | |
# these are only required for Mac, but hopefully it won't break the | |
# Linux build | |
PKG_CONFIG_PATH: "/usr/local/opt/openal-soft/lib/pkgconfig" | |
LDFLAGS: "-L/usr/local/opt/openal-soft/lib" | |
CPPFLAGS: "-I/usr/local/opt/openal-soft/include" | |
run: | | |
./bootstrap | |
./configure | |
make | |
- name: Checks | |
if: startsWith(matrix.os, 'ubuntu-') | |
run: | | |
make check | |
build-source: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Linux dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libsdl2-dev libopenal-dev libalure-dev autotools-dev | |
- name: Build | |
run: | | |
./bootstrap | |
./configure | |
make dist | |
- name: Upload source distribution | |
uses: actions/upload-artifact@v4 | |
with: | |
name: source | |
path: apricots-*.tar.gz | |
if-no-files-found: error | |
compression-level: 0 |