Skip to content

Commit

Permalink
change: fix artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
RJKeevil committed Feb 20, 2024
1 parent d241179 commit 95dd363
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ jobs:
uses: actions/checkout@v4
- name: Build and run tests
run: make run-tests
- uses: actions/upload-artifact@main
- uses: actions/upload-artifact@v4
with:
name: libtokenizers.a
path: ./testTarget/libtokenizers.a
- uses: actions/upload-artifact@main
- uses: actions/upload-artifact@v4
with:
name: onnxruntime.so
path: ./testTarget/onnxruntime.so
release:
name: Release pushed tag
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@master
- uses: actions/download-artifact@v4
with:
name: libtokenizers
name: libtokenizers.a
path: ./libtokenizers.a
- uses: actions/download-artifact@master
- uses: actions/download-artifact@v4
with:
name: onnxruntime.so
path: ./onnxruntime.so
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ jobs:
uses: actions/checkout@v4
- name: Build and run tests
run: make run-tests
- uses: actions/upload-artifact@v4
with:
name: libtokenizers.a
path: ./testTarget/libtokenizers.a
- uses: actions/upload-artifact@v4
with:
name: onnxruntime.so
path: ./testTarget/onnxruntime.so
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG GO_VERSION=1.22.0
ARG RUST_VERSION=1.75
ARG RUST_VERSION=1.76
ARG ONNXRUNTIME_VERSION=1.17.0

#--- rust build of tokenizer
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (

require (
cloud.google.com/go/storage v1.37.0 // indirect
github.com/aws/aws-sdk-go v1.50.15 // indirect
github.com/aws/aws-sdk-go v1.50.21 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-errors/errors v1.5.1 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ cloud.google.com/go/iam v1.1.5 h1:1jTsCu4bcsNsE4iiqNT5SHwrDRCfRmIaaaVFhRveTJI=
cloud.google.com/go/iam v1.1.5/go.mod h1:rB6P/Ic3mykPbFio+vo7403drjlgvoWfYpJhMXEbzv8=
cloud.google.com/go/storage v1.37.0 h1:WI8CsaFO8Q9KjPVtsZ5Cmi0dXV25zMoX0FklT7c3Jm4=
cloud.google.com/go/storage v1.37.0/go.mod h1:i34TiT2IhiNDmcj65PqwCjcoUX7Z5pLzS8DEmoiFq1k=
github.com/aws/aws-sdk-go v1.50.15 h1:wEMnPfEQQFaoIJwuO18zq/vtG4Ft7NxQ3r9xlEi/8zg=
github.com/aws/aws-sdk-go v1.50.15/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
github.com/aws/aws-sdk-go v1.50.21 h1:W8awpwiInOt4qHQE6JghRYQJhHcf/cDJS3mlZYqioSQ=
github.com/aws/aws-sdk-go v1.50.21/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
Expand Down
4 changes: 2 additions & 2 deletions scripts/run-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ docker compose -f $src_dir/.ci/docker-compose.yaml up && \
docker compose -f $src_dir/.ci/docker-compose.yaml logs --no-color >& $test_folder/logs.txt && \
echo "Extracting lib artifacts"
id=$(docker ps -aqf "name=hugot")
echo $id
docker cp $id:/usr/lib/libtokenizers.a ./testTarget/libtokenizers.a
docker cp $id:/usr/lib64/onnxruntime.so ./testTarget/onnxruntime.so
docker compose -f $src_dir/.ci/docker-compose.yaml rm -fsv
echo $id
docker compose -f $src_dir/.ci/docker-compose.yaml rm -fsv

0 comments on commit 95dd363

Please sign in to comment.