Skip to content

Commit

Permalink
Fix artifact path in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev committed Nov 26, 2023
1 parent e6a870f commit 67756de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ jobs:
body: ${{ needs.prepare.outputs.changelog }}
files: |
${{ steps.artifacts.outputs.file_name }}
# Upload these for use with the Docker build later
- name: Upload binaries
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: binaries
path: |
Expand Down Expand Up @@ -241,10 +241,10 @@ jobs:
uses: actions/checkout@v2

- name: Download binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: binaries
path: target/
path: artifacts

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
Expand Down Expand Up @@ -279,7 +279,7 @@ jobs:
uses: actions/download-artifact@v2
with:
name: binaries
path: target/
path: artifacts

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
Expand Down
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ LABEL description="Dojo is a provable game engine and toolchain for building onc
documentation="https://book.dojoengine.org/"

FROM base as amd64
COPY target/x86_64-unknown-linux-gnu/release/katana /usr/local/bin/katana
COPY target/x86_64-unknown-linux-gnu/release/sozo /usr/local/bin/sozo
COPY target/x86_64-unknown-linux-gnu/release/torii /usr/local/bin/torii

COPY artifacts/x86_64-unknown-linux-gnu/release/katana /usr/local/bin/katana
COPY artifacts/x86_64-unknown-linux-gnu/release/sozo /usr/local/bin/sozo
COPY artifacts/x86_64-unknown-linux-gnu/release/torii /usr/local/bin/torii

FROM base as arm64
COPY target/aarch64-unknown-linux-gnu/release/katana /usr/local/bin/katana
COPY target/aarch64-unknown-linux-gnu/release/sozo /usr/local/bin/sozo
COPY target/aarch64-unknown-linux-gnu/release/torii /usr/local/bin/torii

COPY artifacts/aarch64-unknown-linux-gnu/release/katana /usr/local/bin/katana
COPY artifacts/aarch64-unknown-linux-gnu/release/sozo /usr/local/bin/sozo
COPY artifacts/aarch64-unknown-linux-gnu/release/torii /usr/local/bin/torii

0 comments on commit 67756de

Please sign in to comment.