Skip to content

Update actions_dev.yml #62

Update actions_dev.yml

Update actions_dev.yml #62

Workflow file for this run

name: Run tests
on:
push:
branches:
- github-actions-tests-Maxime
pull_request:
branches:
- main
- dev
jobs:
system_update:
runs-on: ubuntu-latest
steps:
- name: Update system
run: |
echo Updating system
sudo apt-get update
sudo apt-get install -y cmake
sudo apt-get install -y gcc-10 g++-10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 90
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 90
- name: Checkout repository code
uses: actions/checkout@v3
- name: Cloning the Repository
run: git clone https://github.com/algosup/2023-2024-project-3-virtual-processor-team-2
build:
needs: system_update
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake g++ make
- name: Build Action
run: |
cmake -S . -B Build
echo Building
cd Build
make
cd ..
echo Action built
echo Ready to be run
test:
needs: build
runs-on: windows-latest
steps:
- name: Running tests
run: |
cd bin
dir
.\tests.exe
shell: cmd