-
Notifications
You must be signed in to change notification settings - Fork 14
51 lines (51 loc) · 1.73 KB
/
build-binaries.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
on:
[push, pull_request]
name: Check compilation
env:
AWS_DEFAULT_REGION: eu-west-1
jobs:
build:
name: Build
strategy:
fail-fast: false
matrix: # Build debug and production
debug: ['', 'debug'] # '' if production, 'debug' for debug
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Initialize git autocrlf
shell: bash
run: git config --global core.autocrlf input
- name: Install iconv and gmp (Windows only)
if: ${{ runner.os == 'Windows' }}
uses: msys2/setup-msys2@v2
with:
path-type: inherit
update: true
install: >-
mingw64/mingw-w64-x86_64-libiconv
mingw64/mingw-w64-x86_64-gmp
- name: Get LAL_Tools
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ./cached_gnat
key: ${{ runner.os }}-gnat-ce-2020
- name: Get GNAT Community 2020 toolchain
uses: ada-actions/toolchain@ce2020
with:
distrib: community
install_dir: ./cached_gnat
- name: Build (Windows)
if: ${{ runner.os == 'Windows' }}
shell: msys2 {0}
env:
AWS_ACCESS_KEY_ID: ${{secrets.GHA_CACHE_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.GHA_CACHE_SECRET}}
run: .github/workflows/build-binaries.sh "${{ matrix.debug }}" ${{ runner.os }}
- name: Build (non-Windows)
if: ${{ runner.os != 'Windows' }}
env:
AWS_ACCESS_KEY_ID: ${{secrets.GHA_CACHE_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.GHA_CACHE_SECRET}}
run: .github/workflows/build-binaries.sh "${{ matrix.debug }}" ${{ runner.os }}