Skip to content

Update main.yml

Update main.yml #7

Workflow file for this run

name: C++ CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: latest
platform: x64
- name: Install dependencies
run: |
sudo apt-get install libcunit1 libcunit1-doc libcunit1-dev
- name: Build
run: |
gcc -o test_cache src/main.c src/cache.c -lcunit
touch data.txt
- name: Run tests
run: |
./test_cache