Skip to content

Commit

Permalink
chore(workflows): Fix release job (#3438)
Browse files Browse the repository at this point in the history
  • Loading branch information
breathx authored Oct 22, 2023
1 parent 57df8b3 commit a3fe307
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,24 @@ jobs:
- name: "Build: Production `vara-runtime`"
run: cargo build -p vara-runtime --profile production --no-default-features --features std

- name: "Test: Production `vara-runtime`"
run: ./wasm-proc --check-runtime-imports --check-runtime-is-dev false target/production/wbuild/vara-runtime/vara_runtime.compact.wasm

- name: "Artifact: Production `vara-runtime`"
run: cp target/production/wbuild/vara-runtime/vara_runtime.compact.compressed.wasm "artifact/vara_runtime_v$VARA_SPEC.wasm"

- name: "Build: Production node with development runtimes"
- name: "Build: Production node client and development `vara-runtime`"
run: cargo build -p gear-cli --profile production

- name: "Test: Development `vara-runtime`"
run: ./wasm-proc --check-runtime-imports --check-runtime-is-dev true target/production/wbuild/vara-runtime/vara_runtime.compact.wasm

- name: "Artifact: Production node client and development `vara-runtime`"
run: |
cp target/production/wbuild/vara-runtime/vara_runtime.compact.compressed.wasm "artifact/vara_devruntime_v$VARA_SPEC.wasm"
cp target/production/gear artifact/gear
strip artifact/gear || true
- name: "Test: Runtimes"
run: |
./wasm-proc --check-runtime-imports --check-runtime-is-dev false "artifact/vara_runtime_v$VARA_SPEC.wasm"
./wasm-proc --check-runtime-imports --check-runtime-is-dev true "artifact/vara_devruntime_v$VARA_SPEC.wasm"
- name: Publish
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit a3fe307

Please sign in to comment.