|
| 1 | +name: GNAT Community 2020 on Ubuntu 20.04 |
| 2 | + |
| 3 | +on: [push, pull_request] |
| 4 | + |
| 5 | +jobs: |
| 6 | + build: |
| 7 | + runs-on: ubuntu-20.04 |
| 8 | + |
| 9 | + steps: |
| 10 | + - name: Checkout |
| 11 | + uses: actions/checkout@v2 |
| 12 | + |
| 13 | + - name: Check cached GNAT toolchain |
| 14 | + uses: actions/cache@v2 |
| 15 | + with: |
| 16 | + path: ./cached_gnat |
| 17 | + key: ${{ runner.os }}-gnat-ce-2020 |
| 18 | + |
| 19 | + - name: Set up GNAT toolchain |
| 20 | + uses: ada-actions/toolchain@ce2020 |
| 21 | + with: |
| 22 | + distrib: community |
| 23 | + target: native |
| 24 | + community_year: 2020 |
| 25 | + install_dir: ./cached_gnat |
| 26 | + |
| 27 | + - name: Set up Ubuntu packages |
| 28 | + run: > |
| 29 | + sudo apt-get update && |
| 30 | + sudo apt-get install wavbreaker |
| 31 | +
|
| 32 | + - name: Install dependencies |
| 33 | + run: > |
| 34 | + . ./scripts/install_deps.sh && |
| 35 | + echo "GPR_PROJECT_PATH=${GPR_PROJECT_PATH}" >> $GITHUB_ENV |
| 36 | +
|
| 37 | + - name: Verify generated source-code files |
| 38 | + run: TEST=1 ./scripts/generate_src.sh |
| 39 | + |
| 40 | + - name: Build test for Wavefile Library |
| 41 | + run: gprbuild -P test/wavefiles_test/wavefiles_test.gpr |
| 42 | + |
| 43 | + - name: Build Quick Wav-Data Check |
| 44 | + run: gprbuild -P test/quick_wav_data_check/quick_wav_data_check.gpr |
| 45 | + |
| 46 | + - name: Run Quick Wav-Data Check |
| 47 | + run: ./test/quick_wav_data_check/bin/quick_wav_data_check "$(date +"%Y%m%d-%H%M%S")_" |
| 48 | + |
| 49 | + - name: Build & check Cookbook |
| 50 | + run: ./scripts/test_cookbook.sh |
| 51 | + |
| 52 | + - name: Build & run Simple Benchmarking |
| 53 | + run: > |
| 54 | + gprclean -r -P test/simple_benchmarking/simple_benchmarking.gpr && |
| 55 | + gprbuild -P test/simple_benchmarking/simple_benchmarking.gpr -XWAVEFILES_BUILD_MODE=RELEASE && |
| 56 | + ./scripts/simple_benchmarking.sh |
0 commit comments