fixed workflow #3
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: C++ CI Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest # Specifies the runner environment | |
steps: | |
- uses: actions/checkout@v3 # Checks-out your repository | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y g++ cmake make # Installs G++, CMake, and Make | |
- name: Configure CMake | |
run: cmake -S . -B build # Configures CMake | |
- name: Build | |
run: cmake --build build # Builds the project | |
#- name: Test # Optionally, run tests | |
# run: cmake --build build --target test | |
- name: Upload Artifacts # Uploads the executable as an artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: executable | |
path: ./build/MCRandomProxy |