mirror of
https://github.com/AdaCore/spawn.git
synced 2026-02-12 13:09:41 -08:00
Fix CR/LF in COPYING.RUNTIME. Add one more test to Makefile. Force environment OS=osx on Mac OS X. Use ce2020 branch for toolchain instead of the commit.
33 lines
916 B
YAML
33 lines
916 B
YAML
on: [push, pull_request]
|
|
name: Build
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
name: Build
|
|
steps:
|
|
- name: Initialize OS env and git autocrlf
|
|
shell: bash
|
|
run: |
|
|
git config --global core.autocrlf input
|
|
if [[ ${{ runner.os }} = macOS ]]; then
|
|
echo "OS=osx" >> $GITHUB_ENV
|
|
fi
|
|
- name: Get Spawn
|
|
uses: actions/checkout@v2
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: ./cached_gnat
|
|
key: ${{ runner.os }}-gnat-2020.1
|
|
restore-keys: ${{ runner.os }}-gnat-2020.1
|
|
- name: Get GNAT Community 2020 toolchain
|
|
uses: ada-actions/toolchain@ce2020
|
|
with:
|
|
distrib: community
|
|
install_dir: ./cached_gnat
|
|
- name: Build and test
|
|
run: make all check
|