Update c-cpp.yml #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: depend | |
run: sudo apt install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev && ls | |
- name: mkdir | |
run: mkdir build | |
- name: cd | |
run: cd build | |
- name: cmake | |
run: cmake . | |
- name: make | |
run: make -j$(nproc) | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
with: | |
name: artifact |