Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 30 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ name: Publish
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-[A-Za-z]+.[0-9]+'
- "[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+-[A-Za-z]+.[0-9]+"
pull_request:

concurrency:
Expand All @@ -21,7 +21,7 @@ env:
# Use the local .curlrc
CURL_HOME: .
# Disable DFX telemetry
DFX_TELEMETRY: 'off'
DFX_TELEMETRY: "off"

jobs:
build_dfx:
Expand All @@ -31,7 +31,13 @@ jobs:
matrix:
# We build a dynamic-linked linux binary because otherwise HSM support fails with:
# Error: IO: Dynamic loading not supported
target: [ x86_64-apple-darwin, aarch64-apple-darwin, x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu ]
target:
[
x86_64-apple-darwin,
aarch64-apple-darwin,
x86_64-unknown-linux-gnu,
aarch64-unknown-linux-gnu,
]
include:
- os: macos-14-large
target: x86_64-apple-darwin
Expand Down Expand Up @@ -166,7 +172,8 @@ jobs:
strategy:
fail-fast: false
matrix:
name: [ 'x86_64-darwin', 'aarch64-darwin', 'x86_64-linux', 'aarch64-linux' ]
name:
["x86_64-darwin", "aarch64-darwin", "x86_64-linux", "aarch64-linux"]
steps:
- uses: actions/checkout@v4

Expand All @@ -178,7 +185,7 @@ jobs:
with:
name: dfx-artifacts-${{ hashFiles('rust-toolchain.toml') }}-${{ matrix.name }}

- name: Upload tarball and sha256
- name: Upload dfx tarballs and sha256
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -187,3 +194,20 @@ jobs:
tag: ${{ env.VERSION }}
prerelease: true
make_latest: false
publish-assets:
runs-on: ubuntu-latest
if: github.ref_type == 'tag'
needs: publish
steps:
- uses: actions/checkout@v4

- name: Setup environment variables
run: echo "VERSION=$GITHUB_REF_NAME" >> $GITHUB_ENV

- name: Upload assets canister
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: src/distributed/assetstorage.{wasm.gz,did}
file_glob: true
tag: ${{ env.VERSION }}