Skip to content

Commit 110e75d

Browse files
committed
test
1 parent a107675 commit 110e75d

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)