Skip to content

Commit

Permalink
Separate out building/testing steps
Browse files Browse the repository at this point in the history
Co-authored-by:  Jim Huang <[email protected]>
  • Loading branch information
ChAoSUnItY and jserv committed Nov 24, 2024
1 parent 32ddc38 commit a6ff867
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,29 @@ jobs:
matrix:
compiler: [gcc, clang]
steps:
- name: checkout code
- name: Checkout code
uses: actions/checkout@v4
- name: Install prerequisite
run: |
sudo apt-get update -q -y
sudo apt-get install -q -y file
sudo apt-get install -q -y build-essential
- name: Build artifact
- name: Build stage 1 artifact
env:
CC: ${{ matrix.compiler }}
run: |
make clean
make test-all -j || exit 1
make slimcc
shell: bash
- name: Test stage 1
run: |
make test || exit 1
shell: bash
- name: Build stage 2 artifact
run: |
make stage2/slimcc
shell: bash
- name: Test stage 2
run: |
make test-stage2 || exit 1
shell: bash

0 comments on commit a6ff867

Please sign in to comment.