Skip to content

Commit

Permalink
Merge pull request #57 from nervosnetwork/0.10.7
Browse files Browse the repository at this point in the history
Build v0.10.7 for mainnet_v0
  • Loading branch information
Flouse authored Jun 13, 2022
2 parents cc98460 + 7fca262 commit 01cb8c1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
# schedule:
# - cron: '22 3 * * *'
push:
branches: [ main, 'v0.10*' ]
branches: [ main, 'v0.10*', '0.10*' ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
tags: [ 'v*.*.*', '0.10.*', '1.*' ]

env:
# Use docker.io for Docker Hub if empty
Expand Down Expand Up @@ -39,7 +39,6 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-cargo-
Expand All @@ -49,7 +48,7 @@ jobs:
- name: Install moleculec
run: |
test "$(moleculec --version)" = "Moleculec 0.7.2" \
|| CARGO_TARGET_DIR=target/ cargo install moleculec --version 0.7.2 --force
|| cargo install moleculec --version 0.7.2 --force
- name: Install capsule
env:
CAPSULE_VERSION: v0.7.0
Expand Down Expand Up @@ -134,6 +133,15 @@ jobs:
build/godwoken/target/release/godwoken
build/godwoken/target/release/gw-tools
key: component.godwoken-${{ steps.prepare.outputs.godwoken-sha1 }}
- name: Cache Godwoken target directory
if: steps.godwoken-cache.outputs.cache-hit != 'true'
uses: actions/cache@v3
with:
path: |
build/godwoken/target
key: ${{ runner.os }}-cargo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Build godwoken
if: steps.godwoken-cache.outputs.cache-hit != 'true'
working-directory: build/godwoken
Expand Down Expand Up @@ -164,7 +172,6 @@ jobs:
ref.component.godwoken-scripts-sha1=${{ steps.prepare.outputs.godwoken-scripts-sha1 }}
ref.component.godwoken-polyjuice=${{ steps.prepare.outputs.POLYJUICE_REF }}
ref.component.godwoken-polyjuice-sha1=${{ steps.prepare.outputs.godwoken-polyjuice-sha1 }}
ref.component.clerkb=${{ steps.prepare.outputs.OMNI_LOCK_REF }}
ref.component.clerkb-sha1=${{ steps.prepare.outputs.clerkb-sha1 }}
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ SHELL := /bin/bash
# components repos
GODWOKEN_REPO := https://github.com/nervosnetwork/godwoken.git
GODWOKEN_SCRIPTS_REPO := https://github.com/nervosnetwork/godwoken-scripts.git
POLYJUICE_REPO := https://github.com/Flouse/polyjuice.git
POLYJUICE_REPO := https://github.com/nervosnetwork/godwoken-polyjuice.git
CLERKB_REPO := https://github.com/nervosnetwork/clerkb.git

# components tags
GODWOKEN_REF := v0.10.4
GODWOKEN_SCRIPTS_REF := v0.8.4
POLYJUICE_REF := v0.8.14
GODWOKEN_REF := v0.10.7 # https://github.com/nervosnetwork/godwoken/releases/tag/v0.10.7
GODWOKEN_SCRIPTS_REF := v0.9.0 # https://github.com/nervosnetwork/godwoken-scripts/releases/tag/v0.9.0
POLYJUICE_REF := 0.8.14 # https://github.com/nervosnetwork/godwoken-polyjuice/releases/tag/0.8.14
CLERKB_REF := v0.4.0

define prepare_repo
Expand Down

0 comments on commit 01cb8c1

Please sign in to comment.