-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (34 loc) · 1.27 KB
/
gcc-linux-nix-check.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
name: Build and Test on Linux Platforms
on:
workflow_call:
jobs:
build-and-test:
name: "Build and test Linux with gcc"
runs-on: [self-hosted, Linux, X64, aws_autoscaling]
steps:
# https://github.com/actions/checkout/issues/1552
- name: Clean up after previous checkout
run: chmod +w -R ${GITHUB_WORKSPACE}; rm -rf ${GITHUB_WORKSPACE}/*;
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run checks for crypto3
run: |
nix build -L .?#checks.x86_64-linux.crypto3-gcc
env:
NIX_CONFIG: |
cores = 16
- name: Run all checks
# This includes cached crypto3 check from previous step. We don't limit cores in this part
run: |
nix build -L .?#checks.x86_64-linux.all-gcc
mkdir results
cp result/test-logs/*_test.xml results/
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/linux@v2
with:
check_name: "Gcc Test Results"
files: "results/*.xml"
comment_mode: ${{ github.event.pull_request.head.repo.fork && 'off' || 'always' }} # Don't create PR comment from fork runs
action_fail_on_inconclusive: true # fail, if no reports