Files
spawn/.github/workflows/main.yml
Maxim Reznik 521e383c1a Minor update
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.
2020-12-24 22:35:16 +02:00

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