Skip to content

Commit

Permalink
Merge pull request #40 from nervosnetwork/v0.10.4-rc
Browse files Browse the repository at this point in the history
v0.10.4 pre-release
  • Loading branch information
Flouse authored Apr 8, 2022
2 parents 3c3350a + 2431019 commit cd4f64e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
# schedule:
# - cron: '22 3 * * *'
push:
branches: [ main, 'docker-publish*' ]
branches: [ main, 'docker-publish*', 'v0.10*' ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get -y install --no-install-recommends llvm-dev clang libclang-dev libss
RUN cargo install moleculec --version 0.7.2

COPY ./build/godwoken /godwoken
RUN cd /godwoken && rustup component add rustfmt && cargo build --release
RUN cd /godwoken && rustup component add rustfmt && CARGO_PROFILE_RELEASE_LTO=true cargo build --release

RUN mkdir /ckb
RUN cd /ckb && curl -LO https://github.com/nervosnetwork/ckb/releases/download/v0.100.0/ckb_v0.100.0_x86_64-unknown-linux-gnu.tar.gz
Expand Down
22 changes: 12 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,30 @@ POLYJUICE_REPO := https://github.com/nervosnetwork/godwoken-polyjuice.git
CLERKB_REPO := https://github.com/nervosnetwork/clerkb.git

# components tags
GODWOKEN_REF := v0.10.3
GODWOKEN_REF := v0.10.4
GODWOKEN_SCRIPTS_REF := v0.8.4
POLYJUICE_REF := v0.8.10-aot
POLYJUICE_REF := refs/pull/142/head
CLERKB_REF := v0.4.0

define prepare_repo
if [ -d "build/$(3)" ]; then\
cd build/$(3);\
git reset --hard;\
git fetch --all;\
git checkout $(2);\
git submodule update --init --recursive;\
else\
git clone --recursive $(1) -b $(2) build/$(3);\
if [ ! -d "build/$(3)" ]; then\
git clone --depth=1 $(1) build/$(3);\
fi
cd build/$(3);\
git fetch origin $(2);\
git checkout FETCH_HEAD;\
git submodule update --init --recursive --depth=1;\
echo "::set-output name=$(3)-sha1::$$(git rev-parse HEAD)" >> ../../versions
endef

prepare-repos:
mkdir -p build
$(call prepare_repo,$(GODWOKEN_REPO),$(GODWOKEN_REF),godwoken)
echo "::set-output name=GODWOKEN_REF::$(GODWOKEN_REF) $$(cd build/godwoken && git rev-parse --short HEAD)" >> versions
$(call prepare_repo,$(GODWOKEN_SCRIPTS_REPO),$(GODWOKEN_SCRIPTS_REF),godwoken-scripts)
echo "::set-output name=GODWOKEN_SCRIPTS_REF::$(GODWOKEN_SCRIPTS_REF) $$(cd build/godwoken-scripts && git rev-parse --short HEAD)" >> versions
$(call prepare_repo,$(POLYJUICE_REPO),$(POLYJUICE_REF),godwoken-polyjuice)
echo "::set-output name=POLYJUICE_REF::$(POLYJUICE_REF) $$(cd build/godwoken-polyjuice && git rev-parse --short HEAD)" >> versions
$(call prepare_repo,$(CLERKB_REPO),$(CLERKB_REF),clerkb)

build-components: prepare-repos
Expand Down

0 comments on commit cd4f64e

Please sign in to comment.