trying something different + caching
@@ -22,6 +22,12 @@ jobs:
command: install
args: vcdump
+ - name: Cache Cargo install tools
+ uses: action/cache@v2
+ with:
+ path: ~/.cargo/bin/
+ key: ${{ runner.os }}-cargo-tools
+
- name: Install verilator and jq
run: sudo apt-get install verilator
@@ -37,21 +43,34 @@ jobs:
commands: assembly
sbt_project_directory: ./dahlia
+ - name: Cache SBT
+ uses: actions/cache@v2
+ with:
+ path: |
+ ~/.ivy2/cache
+ ~/.sbt
+ key: ${{ runner.os }}-sbt-${{ hashFiles('dahlia/build.sbt') }}
+
- name: Install Dahlia
run: |
- ls
- echo $(ls)
- pwd
- echo $(pwd)
- ls ~/.local/bin/dahlia
- echo $(ls ~/.local/bin/dahlia)
- ln -sf "$(pwd)/dahlia/target/scala-2.13/fuse.jar ~/.local/bin/dahlia"
+ mkdir -p ./dahlia/bin
+ ln -sf ./dahlia/target/scala-2.13/fuse.jar ./dahlia/bin/dahlia
+ export PATH=$PATH:./dahlia/bin
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
+ - name: Cache Futil dependencies
+ uses: actions/cache@v2
+ with:
+ path: |
+ ~/.cargo/registry
+ ~/.cargo/git
+ target
+ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
+
- name: Test
run: runt -d -o fail
