Skip to content

Commit

Permalink
Refactor CI action
Browse files Browse the repository at this point in the history
- Separate prerequisite package installation step and building & testing step
- Uses ubuntu-latest instead of ubuntu-22.04

Co-authored-by:  Jim Huang <[email protected]>
  • Loading branch information
ChAoSUnItY and jserv committed Nov 23, 2024
1 parent 74ff599 commit 0eeab25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 28 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/main.yaml

This file was deleted.

11 changes: 6 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@ on: [push, pull_request]

jobs:
host-x86:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [gcc-12, clang]
steps:
- name: checkout code
uses: actions/checkout@v4
- name: build artifact
env:
CC: ${{ matrix.compiler }}
- name: retreive 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
env:
CC: ${{ matrix.compiler }}
make clean
make test-stage2 -j || exit 1
make test-all -j || exit 1
shell: bash

0 comments on commit 0eeab25

Please sign in to comment.