-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config for auto ci
- Loading branch information
Showing
7 changed files
with
109 additions
and
68 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ name: ChiselStage | |
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master, develop ] | ||
branches: [ master, develop, bump/mill_chisel5 ] | ||
# pull_request: | ||
# branches: [ master ] | ||
|
||
|
@@ -19,14 +19,14 @@ jobs: | |
runs-on: [self-hosted, Linux, X64] | ||
name: chiselStage | ||
container: | ||
image: whutddk/rift2env:riscvtest | ||
image: whutddk/rift2env:chisel5 | ||
# needs: clean | ||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: set up apt | ||
run: | | ||
apt-get update | ||
apt-get install -y wget git make | ||
apt-get install -y wget git make curl | ||
- uses: actions/[email protected] | ||
|
@@ -41,8 +41,11 @@ jobs: | |
- name: Compile | ||
run: | | ||
echo ${GITHUB_WORKSPACE} | ||
sbt "test:runMain test.testAll" | ||
sbt doc | ||
rm dependencies/rocket-chip/src/main/resources/META-INF/services/firrtl.options.RegisteredLibrary | ||
mill -i rift2Core[chisel].test.runMain test.testAll | ||
mill --no-server show rift2Core[chisel].docJar | ||
unzip -d ScalaDoc/ out/rift2Core/chisel/docJar.dest/out.jar | ||
echo $GITHUB_REF_NAME | ||
|
@@ -53,19 +56,19 @@ jobs: | |
cp ${GITHUB_WORKSPACE}/LICENSE.Apache ${GITHUB_WORKSPACE}/../ | ||
cp ${GITHUB_WORKSPACE}/LICENSE.NPL ${GITHUB_WORKSPACE}/../ | ||
cp -R target/scala-2.13/api ${GITHUB_WORKSPACE}/../ScalaDoc/$GITHUB_REF_NAME | ||
cd ${GITHUB_WORKSPACE}/generated/Release/ | ||
tar -cvf Rift2300-Release.tar Rift2300/* | ||
tar -cvf Rift2310-Release.tar Rift2310/* | ||
tar -cvf Rift2320-Release.tar Rift2320/* | ||
tar -cvf Rift2330-Release.tar Rift2330/* | ||
tar -cvf Rift2340-Release.tar Rift2340/* | ||
tar -cvf Rift2350-Release.tar Rift2350/* | ||
tar -cvf Rift2360-Release.tar Rift2360/* | ||
tar -cvf Rift2370-Release.tar Rift2370/* | ||
tar -cvf Rift2380-Release.tar Rift2380/* | ||
tar -cvf Rift2390-Release.tar Rift2390/* | ||
cp -R ScalaDoc/* ${GITHUB_WORKSPACE}/../ScalaDoc/$GITHUB_REF_NAME | ||
# cd ${GITHUB_WORKSPACE}/generated/Release/ | ||
# tar -cvf Rift2300-Release.tar Rift2300/* | ||
# tar -cvf Rift2310-Release.tar Rift2310/* | ||
# tar -cvf Rift2320-Release.tar Rift2320/* | ||
# tar -cvf Rift2330-Release.tar Rift2330/* | ||
# tar -cvf Rift2340-Release.tar Rift2340/* | ||
# tar -cvf Rift2350-Release.tar Rift2350/* | ||
# tar -cvf Rift2360-Release.tar Rift2360/* | ||
# tar -cvf Rift2370-Release.tar Rift2370/* | ||
# tar -cvf Rift2380-Release.tar Rift2380/* | ||
# tar -cvf Rift2390-Release.tar Rift2390/* | ||
cd ${GITHUB_WORKSPACE}/generated/Debug/ | ||
tar -cvf Rift2300-Debug.tar Rift2300/* | ||
|
@@ -124,25 +127,25 @@ jobs: | |
prerelease: true | ||
target_commitish: ${{github.ref_name}} | ||
files: | | ||
./generated/Release/Rift2300-Release.tar | ||
# ./generated/Release/Rift2300-Release.tar | ||
./generated/Debug/Rift2300-Debug.tar | ||
./generated/Release/Rift2310-Release.tar | ||
# ./generated/Release/Rift2310-Release.tar | ||
./generated/Debug/Rift2310-Debug.tar | ||
./generated/Release/Rift2320-Release.tar | ||
# ./generated/Release/Rift2320-Release.tar | ||
./generated/Debug/Rift2320-Debug.tar | ||
./generated/Release/Rift2330-Release.tar | ||
# ./generated/Release/Rift2330-Release.tar | ||
./generated/Debug/Rift2330-Debug.tar | ||
./generated/Release/Rift2340-Release.tar | ||
# ./generated/Release/Rift2340-Release.tar | ||
./generated/Debug/Rift2340-Debug.tar | ||
./generated/Release/Rift2350-Release.tar | ||
# ./generated/Release/Rift2350-Release.tar | ||
./generated/Debug/Rift2350-Debug.tar | ||
./generated/Release/Rift2360-Release.tar | ||
# ./generated/Release/Rift2360-Release.tar | ||
./generated/Debug/Rift2360-Debug.tar | ||
./generated/Release/Rift2370-Release.tar | ||
# ./generated/Release/Rift2370-Release.tar | ||
./generated/Debug/Rift2370-Debug.tar | ||
./generated/Release/Rift2380-Release.tar | ||
# ./generated/Release/Rift2380-Release.tar | ||
./generated/Debug/Rift2380-Debug.tar | ||
./generated/Release/Rift2390-Release.tar | ||
# ./generated/Release/Rift2390-Release.tar | ||
./generated/Debug/Rift2390-Debug.tar | ||
./LICENSE.Apache | ||
./LICENSE.NPL | ||
|
@@ -160,25 +163,25 @@ jobs: | |
prerelease: false | ||
target_commitish: ${{github.ref_name}} | ||
files: | | ||
./generated/Release/Rift2300-Release.tar | ||
# ./generated/Release/Rift2300-Release.tar | ||
./generated/Debug/Rift2300-Debug.tar | ||
./generated/Release/Rift2310-Release.tar | ||
# ./generated/Release/Rift2310-Release.tar | ||
./generated/Debug/Rift2310-Debug.tar | ||
./generated/Release/Rift2320-Release.tar | ||
# ./generated/Release/Rift2320-Release.tar | ||
./generated/Debug/Rift2320-Debug.tar | ||
./generated/Release/Rift2330-Release.tar | ||
# ./generated/Release/Rift2330-Release.tar | ||
./generated/Debug/Rift2330-Debug.tar | ||
./generated/Release/Rift2340-Release.tar | ||
# ./generated/Release/Rift2340-Release.tar | ||
./generated/Debug/Rift2340-Debug.tar | ||
./generated/Release/Rift2350-Release.tar | ||
# ./generated/Release/Rift2350-Release.tar | ||
./generated/Debug/Rift2350-Debug.tar | ||
./generated/Release/Rift2360-Release.tar | ||
# ./generated/Release/Rift2360-Release.tar | ||
./generated/Debug/Rift2360-Debug.tar | ||
./generated/Release/Rift2370-Release.tar | ||
# ./generated/Release/Rift2370-Release.tar | ||
./generated/Debug/Rift2370-Debug.tar | ||
./generated/Release/Rift2380-Release.tar | ||
# ./generated/Release/Rift2380-Release.tar | ||
./generated/Debug/Rift2380-Debug.tar | ||
./generated/Release/Rift2390-Release.tar | ||
# ./generated/Release/Rift2390-Release.tar | ||
./generated/Debug/Rift2390-Debug.tar | ||
./LICENSE.Apache | ||
./LICENSE.NPL | ||
|
@@ -253,7 +256,7 @@ jobs: | |
cd /Rift2Core | ||
wget https://github.com/whutddk/Rift2Core/releases/download/${{ steps.getrelease.outputs.tag_name }}/${{matrix.version}}-Debug.tar | ||
wget https://github.com/whutddk/Rift2Core/releases/download/${{ steps.getrelease.outputs.tag_name }}/${{matrix.version}}-Release.tar | ||
# wget https://github.com/whutddk/Rift2Core/releases/download/${{ steps.getrelease.outputs.tag_name }}/${{matrix.version}}-Release.tar | ||
|
@@ -262,10 +265,10 @@ jobs: | |
cd /Rift2Core | ||
mkdir -p ./generated/Debug | ||
mkdir -p ./generated/Release | ||
# mkdir -p ./generated/Release | ||
tar -xvf ./${{matrix.version}}-Debug.tar -C ./generated/Debug | ||
tar -xvf ./${{matrix.version}}-Release.tar -C ./generated/Release | ||
# tar -xvf ./${{matrix.version}}-Release.tar -C ./generated/Release | ||
|
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 |
---|---|---|
|
@@ -367,3 +367,4 @@ VSimTop | |
tb/sw/opensbi/fw_jump.dep | ||
tb/sw/opensbi/fw_jump.elf.ld | ||
mill | ||
ScalaDoc/ |
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 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,15 @@ | ||
FROM whutddk/rift2env:riscvtest | ||
|
||
ENV RISCV=/RISCV/ PATH=$PATH:/RISCV/bin:/RISCV/lib:$YOSYS/bin:/firtool-1.59.0/bin | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y curl wget zip\ | ||
&& cd /usr/local/bin \ | ||
&& curl -L https://raw.githubusercontent.com/lefou/millw/0.4.11/millw > mill && chmod +x mill \ | ||
&& cd / \ | ||
&& wget https://github.com/llvm/circt/releases/download/firtool-1.59.0/circt-full-shared-linux-x64.tar.gz \ | ||
&& tar -zxvf circt-full-shared-linux-x64.tar.gz \ | ||
&& rm circt-full-shared-linux-x64.tar.gz \ | ||
&& apt-get purge -y --auto-remove curl wget \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* |
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 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 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