From 7f0d39d7714abba8d4068df7cacdcbe565fc7841 Mon Sep 17 00:00:00 2001 From: Flouse Date: Tue, 17 May 2022 15:13:57 +0800 Subject: [PATCH 1/2] chore: Cache Godwoken target directory --- .github/workflows/docker-publish.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 17fd1c7..9fce872 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -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- @@ -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 @@ -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 From 7fca2627aa0348d2fb96ba46d82e86555346a1c3 Mon Sep 17 00:00:00 2001 From: Flouse Date: Wed, 18 May 2022 18:20:07 +0800 Subject: [PATCH 2/2] Build v0.10.7 Build v0.10.7 Bump POLYJUICE_REF := 0.8.14 https://github.com/nervosnetwork/godwoken-polyjuice/releases/tag/0.8.14 --- .github/workflows/docker-publish.yml | 5 ++--- Makefile | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 9fce872..1e69957 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -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 @@ -172,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 }} diff --git a/Makefile b/Makefile index 66adc55..154208c 100644 --- a/Makefile +++ b/Makefile @@ -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