-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate on XPack GCC and move to Github Actions (#99)
* Use Github Actions instead of Azure * Use riscv-none-elf from Xpack project.
- Loading branch information
Showing
4 changed files
with
49 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Continuous Integration | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
ci: | ||
name: ci | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: [email protected] | ||
- name: Cache Scala | ||
uses: coursier/cache-action@v5 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt install verilator cmake -y | ||
wget -q --show-progress https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v14.2.0-2/xpack-riscv-none-elf-gcc-14.2.0-2-linux-x64.tar.gz -O gcc.tar.gz | ||
tar xvf gcc.tar.gz --directory=/opt | ||
echo "RISCV_TOOL_PATH_PREFIX=/opt/xpack-riscv-none-elf-gcc-14.2.0-2" >> $GITHUB_ENV | ||
- name: Run Chisel unit tests | ||
run: sbt 'test' | ||
- name: Build emulator and SDK | ||
run: source env.bash && cmake -Bbuild && cd build && make all install | ||
- name: Run C tests | ||
run: | | ||
source env.bash | ||
cd sdk && cmake -B build && cd build && make && ctest | ||
- name: Run multithreaded C tests | ||
run: | | ||
source env.bash | ||
# Run multiple tests with script | ||
./scripts/run_multiple_tests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters