Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github: Update ci-reproducibility workflow for release process refactor #3368

Merged
merged 2 commits into from
Oct 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changelog/3327.internal.5.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github: Bump GoReleaser in release workflow to 0.143.0
github: Bump GoReleaser in ci-reproducibility and release workflows to 0.143.0
1 change: 1 addition & 0 deletions .changelog/3368.internal.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: Bump GoReleaser in ci-reproducibility and release workflows to 0.143.0
6 changes: 6 additions & 0 deletions .changelog/3368.internal.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Make: Refactor release-related targets

- Rename `tag-next-release` target to `release-tag`.
- Rename `release` target to `release-build`.
- Add `release-stable-branch` target that creates and pushes a stable branch
for the current release.
15 changes: 7 additions & 8 deletions .github/workflows/ci-reproducibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
go-version: "1.15.x"
- name: Set up Rust
uses: actions-rs/toolchain@v1
- name: Install oasis-node build prerequisites
- name: Install Oasis Node prerequisites
run: |
sudo apt-get update
sudo apt-get install make libseccomp-dev protobuf-compiler
Expand All @@ -54,19 +54,19 @@ jobs:
tar -xf ${GORELEASER_TARBALL}
sudo mv goreleaser /usr/local/bin
env:
GORELEASER_URL_PREFIX: https://github.com/oasislabs/goreleaser/releases/download/
GORELEASER_VERSION: 0.123.3-oasis1
GORELEASER_URL_PREFIX: https://github.com/goreleaser/goreleaser/releases/download/
GORELEASER_VERSION: 0.143.0
GORELEASER_TARBALL: goreleaser_Linux_x86_64.tar.gz
CURL_CMD: curl --proto =https --tlsv1.2 -sSL
- name: Build oasis-node with Make
- name: Build Oasis Node with Make
run: |
cd build${{ matrix.build_number }}/go
make oasis-node
- name: Build oasis-node with GoReleaser
- name: Build Oasis Node with GoReleaser
run: |
cd build${{ matrix.build_number }}
make release
- name: Get checksums of oasis-node builds
make release-build
- name: Get checksums of Oasis Node builds
run: |
cd build${{ matrix.build_number }}
sha256sum ${OASIS_NODE_MAKE_PATH} ${OASIS_NODE_GORELEASER_PATH} > ../oasis-node-SHA256SUMs
Expand Down Expand Up @@ -109,4 +109,3 @@ jobs:
echo -e "$DIFF"
exit 1
fi

2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ release-stable-branch: fetch-git
# Build and publish the next release.
release-build:
@$(ENSURE_VALID_RELEASE_BRANCH_NAME)
ifeq ($(OASIS_CORE_REAL_RELEASE), true)
@$(ENSURE_GIT_VERSION_EQUALS_PUNCH_VERSION)
endif
@$(ECHO) "$(CYAN)*** Building release version of oasis-core-runtime-loader...$(OFF)"
@CARGO_TARGET_DIR=target/default cargo build -p oasis-core-runtime-loader --release
@cp target/default/release/oasis-core-runtime-loader .
Expand Down