| 1 |
name: Test Generated C |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
pull_request: |
| 6 |
merge_group: |
| 7 |
schedule: |
| 8 |
- cron: '0 0 1 * *' |
| 9 |
|
| 10 |
jobs: |
| 11 |
test-c: |
| 12 |
|
| 13 |
runs-on: ubuntu-latest |
| 14 |
|
| 15 |
concurrency: |
| 16 |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
| 17 |
cancel-in-progress: true |
| 18 |
|
| 19 |
steps: |
| 20 |
- uses: actions/checkout@v4 |
| 21 |
with: |
| 22 |
submodules: recursive |
| 23 |
- name: install gcc |
| 24 |
run: | |
| 25 |
sudo sed -i 's/azure\.//' /etc/apt/sources.list |
| 26 |
sudo apt-get -o Acquire::Retries=30 update -q |
| 27 |
sudo apt-get -o Acquire::Retries=30 install -y --allow-unauthenticated \ |
| 28 |
g++ libssl-dev \ |
| 29 |
ninja-build libunwind-dev cmake |
| 30 |
#sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7 |
| 31 |
- name: GCC Problem Matcher |
| 32 |
uses: ammaraskar/[email protected] |
| 33 |
- name: Set up Go |
| 34 |
uses: actions/setup-go@v5 |
| 35 |
id: go |
| 36 |
- name: make only-test-c-files CC=gcc |
| 37 |
run: make only-test-c-files CC=gcc EXTERNAL_DEPENDENCIES=1 |
| 38 |
- name: make only-test-bedrock2-files CC=gcc |
| 39 |
run: make only-test-bedrock2-files CC=gcc EXTERNAL_DEPENDENCIES=1 |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|