-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:darklife/darkriscv
- Loading branch information
Showing
17 changed files
with
49 additions
and
2 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,39 @@ | ||
name: Linux | ||
|
||
on: | ||
- push | ||
- pull_request | ||
- workflow_dispatch | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: archlinux:latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install prerequisites | ||
run: | | ||
pacman -Sy --noconfirm base-devel git wget iverilog | ||
useradd -m builduser | ||
echo 'builduser ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers | ||
chown -R builduser /home/builduser | ||
- name: Clone AUR package | ||
run: | | ||
sudo -u builduser git clone https://aur.archlinux.org/riscv32-gnu-toolchain-elf-bin.git /home/builduser/riscv32-toolchain | ||
- name: Build and install toolchain | ||
run: | | ||
cd /home/builduser/riscv32-toolchain | ||
sudo -u builduser makepkg -si --noconfirm | ||
riscv32-unknown-elf-gcc -v | ||
- name: Test | ||
run: | | ||
make | ||
- name: Build and test | ||
run: | | ||
export CCPATH=$(dirname `command -v riscv32-unknown-elf-gcc`) | ||
make clean all CROSS=riscv32-unknown-elf CCPATH=$CCPATH ARCH=rv32e_zicsr ABI=ilp32e ENDIAN=little |
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
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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
Empty file.