-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 1.3 KB
/
code.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Test Code Examples
on: [push]
jobs:
Verify-Solution:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Download FuseSoC
run: |
python -m pip install --upgrade pip
pip install fusesoc
fusesoc --version
- name: Install gcc-10
run: |
sudo apt update
sudo apt install -y build-essential
sudo apt install -y gcc-10 g++-10 cpp-10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10
gcc --version
- name: Download OSS
run: |
curl -JOL https://github.com/YosysHQ/oss-cad-suite-build/releases/download/2023-05-23/oss-cad-suite-linux-x64-20230523.tgz
tar -xzvf oss-cad-suite-linux-x64-20230523.tgz -C ./
rm -rf oss-cad-suite-linux-x64-20230523.tgz
echo "$GITHUB_WORKSPACE/oss-cad-suite/bin" >> $GITHUB_PATH
- name: Test C-like
run: |
cd $GITHUB_WORKSPACE/media/code/c-like
make
- name: Test Cache Lab
run: |
cd $GITHUB_WORKSPACE/media/code/cache_lab
make