Skip to content

Commit

Permalink
Merge pull request #1 from oasisprotocol/jberci/devnet-rename
Browse files Browse the repository at this point in the history
Rename current release to Devnet and prepare for Testnet
  • Loading branch information
jberci authored May 13, 2024
2 parents 236bea0 + 6487c59 commit 4bc74ce
Show file tree
Hide file tree
Showing 7 changed files with 553 additions and 576 deletions.
13 changes: 13 additions & 0 deletions .github/orc-wrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
# Determine the network from the version string;
# if it's unusual (i.e. neither mainnet nor testnet), call the orc tool specially.

VERSION="$(cargo metadata --format-version 1 --no-deps | jq -r '.packages | .[0] | .version')"
PRE="$(echo "$VERSION" | cut -s -d- -f2-)"

if [ -z "$PRE" ] || (echo "$PRE" | grep -q "testnet"); then
orc "$@"
else
RUNTIMEID="$(grep -A 5 "\\[package.metadata.orc.$PRE\\]" Cargo.toml | grep "runtime-id" | head -n 1 | grep -o '"[0-9a-fA-F]*"' | tr -d '"')"
orc "$@" --runtime-id "$RUNTIMEID"
fi
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: |
go install github.com/oasisprotocol/oasis-sdk/tools/orc@latest
pushd runtime
orc init ${RUNTIME_EXECUTABLE} --output ../localnet-pontusx-paratime.orc
sh ../.github/orc-wrap.sh init ${RUNTIME_EXECUTABLE} --output ../localnet-pontusx-paratime.orc
popd
env:
RUNTIME_EXECUTABLE: ${{ github.workspace }}/${{ steps.build-debug-elf.outputs.build-path }}/pontusx-paratime
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
run: |
go install github.com/oasisprotocol/oasis-sdk/tools/orc@latest
pushd runtime
orc init ${RUNTIME_EXECUTABLE} --sgx-executable ${RUNTIME_SGXS} --output ../pontusx-paratime.orc
sh ../.github/orc-wrap.sh init ${RUNTIME_EXECUTABLE} --sgx-executable ${RUNTIME_SGXS} --output ../pontusx-paratime.orc
popd
env:
RUNTIME_EXECUTABLE: ${{ github.workspace }}/${{ steps.build-elf.outputs.build-path }}/pontusx-paratime
Expand Down
File renamed without changes.
Loading

0 comments on commit 4bc74ce

Please sign in to comment.