Files
cpu-check/.github/workflows/build.yml
Eric Liu d0b8138dc9
Some checks failed
Build / build (push) Failing after 43s
Simplify CMake setup in GitHub Actions workflow
Remove explicit CMake version setup and install CMake via apt-get instead
2025-01-28 04:55:08 +00:00

41 lines
781 B
YAML

name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake
- name: Create build directory
run: mkdir build
- name: Configure the project
run: |
cd build
cmake ..
- name: Build the project
run: |
cd build
make
- name: Upload Binary
uses: actions/upload-artifact@v3
with:
name: cpu-check-binary
path: build/cpu-check