Skip to content

Commit

Permalink
Build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
martonbognar committed Dec 10, 2024
1 parent 93b82af commit 4b11897
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -16,11 +16,14 @@ jobs:
sudo apt-get -yqq install git lsb-release sudo vim gnupg openjdk-17-jdk verilator gcc-riscv64-unknown-elf curl make gcc g++
- name: Install sbt
run: |
curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup --yes
export PATH="$PATH:~/.local/share/coursier/bin"
sudo apt-get install apt-transport-https gnupg curl -yqq
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update -yqq
sudo apt-get install sbt -yqq
- name: Run Scalafmt
run: sbt scalafmtCheck
- name: Static pipeline riscv-tests
run: make RISCV_PREFIX=riscv64-unknown-elf ARCHFLAGS="-march=rv32im -mabi=ilp32" -C tests
run: make RISCV_PREFIX=riscv64-unknown-elf -C tests
- name: Dynamic pipeline riscv-tests
run: make RISCV_PREFIX=riscv64-unknown-elf CORE=riscv.CoreDynamicExtMem ARCHFLAGS="-march=rv32im -mabi=ilp32" -C tests
run: make RISCV_PREFIX=riscv64-unknown-elf CORE=riscv.CoreDynamicExtMem -C tests
20 changes: 8 additions & 12 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
image: ubuntu:jammy
image: ubuntu:noble

variables:
GIT_SUBMODULE_STRATEGY: recursive

before_script:
- apt-get update -yqq
# Prevent interactive prompt when installing tzdata
- DEBIAN_FRONTEND=noninteractive apt-get install tzdata -yqq
- apt-get update
# Install build dependencies
- apt-get install build-essential verilator gcc-riscv64-unknown-elf openjdk-11-jdk -yqq
- apt-get -yqq install git lsb-release sudo vim gnupg openjdk-17-jdk verilator gcc-riscv64-unknown-elf curl make gcc g++
# Install dependencies needed for adding the sbt repo
- apt-get install apt-transport-https gnupg curl -yqq
# Add keyserver for SBT
Expand All @@ -14,11 +15,6 @@ before_script:
# Install SBT
- apt-get update -yqq
- apt-get install sbt -yqq
# Log the dependency versions
- verilator --version
- sbt sbtVersion
# Update all submodules (e.g., riscv-tests)
- git submodule update --init

scalafmt:
script:
Expand All @@ -27,6 +23,6 @@ scalafmt:
test:
script:
# Execute base RV32IM tests on the static pipeline
- make RISCV_PREFIX=riscv64-unknown-elf ARCHFLAGS="-march=rv32im -mabi=ilp32" -C tests
- make RISCV_PREFIX=riscv64-unknown-elf -C tests
# Execute base RV32IM tests on the dynamic pipeline
- make RISCV_PREFIX=riscv64-unknown-elf CORE=riscv.CoreDynamicExtMem ARCHFLAGS="-march=rv32im -mabi=ilp32" -C tests
- make RISCV_PREFIX=riscv64-unknown-elf CORE=riscv.CoreDynamicExtMem -C tests
2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RISCV_PREFIX ?= riscv32-unknown-elf
CC = $(RISCV_PREFIX)-gcc
LD = $(RISCV_PREFIX)-gcc
OBJCOPY = $(RISCV_PREFIX)-objcopy
ARCHFLAGS ?= -march=rv32imzicsr -mabi=ilp32
ARCHFLAGS ?= -march=rv32im_zicsr -mabi=ilp32
CFLAGS = $(ARCHFLAGS)

ifeq ($(BUILD_CORE),1)
Expand Down

0 comments on commit 4b11897

Please sign in to comment.