File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,14 +93,16 @@ jobs:
9393 with :
9494 path : /tmp/JACS/jacsgo/build
9595 key : jacsgo-${{ runner.os }}-${{ hashFiles('.github/workflows/test.yml') }}
96- - name : Clone JACS and build jacsgo
96+ - name : Clone JACS
97+ run : git clone --depth 1 https://github.com/HumanAssisted/JACS.git /tmp/JACS
98+ - name : Build jacsgo shared library
9799 if : steps.cache-jacsgo.outputs.cache-hit != 'true'
100+ run : cd /tmp/JACS/jacsgo && make build-rust
101+ - name : Set go.mod replace directive for CI
98102 run : |
99- git clone --depth 1 https://github.com/HumanAssisted/JACS.git /tmp/JACS
100- cd /tmp/JACS/jacsgo
101- make build-rust
102- - name : Remove local dev replace directive
103- run : sed -i '/^replace github.com\/HumanAssisted\/JACS\/jacsgo/d' go/go.mod
103+ cd go
104+ sed -i '/^replace github.com\/HumanAssisted\/JACS\/jacsgo/d' go.mod
105+ echo 'replace github.com/HumanAssisted/JACS/jacsgo => /tmp/JACS/jacsgo' >> go.mod
104106 - name : Run tests
105107 env :
106108 CGO_ENABLED : " 1"
You can’t perform that action at this time.
0 commit comments