Skip to content

Commit

Permalink
Merge pull request #4707 from oasisprotocol/kostko/feature/rt-ldr-sta…
Browse files Browse the repository at this point in the history
…tic-ssl
  • Loading branch information
kostko authored Apr 26, 2022
2 parents 2ec23bb + 81bec2c commit eaab525
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .changelog/4707.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ci: Build OpenSSL statically for Oasis Core releases

This makes sure that oasis-core-loader is more portable between
distributions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,20 @@ jobs:
# For more info, see:
# https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
fetch-depth: 0

- name: Set up Go 1.17
uses: actions/setup-go@v3
with:
go-version: "1.17.x"

- name: Set up Rust
uses: actions-rs/toolchain@v1

- name: Install Oasis Node prerequisites
run: |
sudo apt-get update
sudo apt-get install make libseccomp-dev protobuf-compiler
- name: Install jemalloc
run: |
cd $(mktemp --directory /tmp/jemalloc.XXXXX)
Expand All @@ -62,6 +66,7 @@ jobs:
sudo make install
env:
JEMALLOC_TARBALL: jemalloc.tar.bz2

- name: Install GoReleaser
run: |
cd $(mktemp --directory /tmp/goreleaser.XXXXX)
Expand All @@ -74,16 +79,22 @@ jobs:
sudo mv goreleaser /usr/local/bin
env:
GORELEASER_TARBALL: goreleaser_Linux_x86_64.tar.gz

- name: Set RELEASE_BRANCH name for stable/bugfix releases
run: |
GIT_VERSION=${GITHUB_REF#refs/tags/v}
if [[ ! ${GIT_VERSION} =~ ^[0-9]+\.[0-9]+$ ]]; then
echo "RELEASE_BRANCH=stable/${GIT_VERSION%.*}.x" >> $GITHUB_ENV
fi
- name: Build and publish the next release
run: |
make release-build
env:
# Make sure OpenSSL is built statically.
OPENSSL_LIB_DIR: /usr/lib/x86_64-linux-gnu
OPENSSL_INCLUDE_DIR: /usr/include
OPENSSL_STATIC: yes
# Instruct Make to create a real release.
OASIS_CORE_REAL_RELEASE: "true"
# Pass automatically created GitHub App installation token to the action.
Expand Down

0 comments on commit eaab525

Please sign in to comment.