Skip to content

Commit

Permalink
Migrate to GitHub Actions (#176)
Browse files Browse the repository at this point in the history
CircleCI recently prohibited free users from running tests that take more than one hour. This broke our CI tests, because installing Chipyard and building the Verilator tests can take quite a while.

This PR switches over to GitHub Actions to resolve this.
  • Loading branch information
hngenc authored Dec 18, 2021
1 parent 54ed4cd commit ff8c78b
Show file tree
Hide file tree
Showing 10 changed files with 155 additions and 222 deletions.
179 changes: 0 additions & 179 deletions .circleci/config.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .circleci/create-hash.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ set -ex
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
source $SCRIPT_DIR/defaults.sh

if [ ! -d "$HOME/$1-install" ]; then
INSTALL_DIR="$HOME/$1-install"

if [ ! -d "$INSTALL_DIR" ]; then
cd $HOME

git clone --progress --verbose https://github.com/ucb-bar/chipyard.git chipyard
Expand All @@ -30,3 +32,4 @@ if [ ! -d "$HOME/$1-install" ]; then
# init all submodules including the tools (doesn't use CI_MAKE_PROC due to mem. constraints)
CHIPYARD_DIR="$LOCAL_CHIPYARD_DIR" NPROC=$CI_MAKE_NPROC $LOCAL_CHIPYARD_DIR/scripts/build-toolchains.sh esp-tools
fi

12 changes: 8 additions & 4 deletions .circleci/defaults.sh → .github/scripts/defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ VERILATOR_VERSION=v4.034

# local variables (aka within the docker container)
LOCAL_WORK_DIR=$HOME
LOCAL_CHECKOUT_DIR=$HOME/project
LOCAL_CHECKOUT_DIR=$GITHUB_WORKSPACE/
LOCAL_RISCV_DIR=$HOME/riscv-tools-install
LOCAL_ESP_DIR=$HOME/esp-tools-install
LOCAL_CHIPYARD_DIR=$HOME/chipyard
LOCAL_SIM_DIR=$LOCAL_CHIPYARD_DIR/sims/verilator
LOCAL_VERILATOR_DIR=$HOME/verilator-install

# api url to do curls
API_URL=https://circleci.com/api/v2

echo "::set-output name=LOCAL_WORK_DIR::$LOCAL_WORK_DIR"
echo "::set-output name=LOCAL_CHECKOUT_DIR::$LOCAL_CHECKOUT_DIR"
echo "::set-output name=LOCAL_RISCV_DIR::$LOCAL_RISCV_DIR"
echo "::set-output name=LOCAL_ESP_DIR::$LOCAL_ESP_DIR"
echo "::set-output name=LOCAL_CHIPYARD_DIR::$LOCAL_CHIPYARD_DIR"
echo "::set-output name=LOCAL_SIM_DIR::$LOCAL_SIM_DIR"
echo "::set-output name=LOCAL_VERILATOR_DIR::$LOCAL_VERILATOR_DIR"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ source $SCRIPT_DIR/defaults.sh
TOOLS_DIR=$LOCAL_ESP_DIR
PATH=$PATH:$LOCAL_ESP_DIR/bin

git clone git@github.com:ucb-bar/esp-isa-sim.git
git clone https://github.com/ucb-bar/esp-isa-sim.git
cd esp-isa-sim
git checkout $(cat $LOCAL_CHECKOUT_DIR/SPIKE.hash)
cp $LOCAL_CHIPYARD_DIR/generators/gemmini/software/gemmini-rocc-tests/include/gemmini_params.h gemmini/
Expand Down
Loading

0 comments on commit ff8c78b

Please sign in to comment.