Skip to content

Commit

Permalink
Revert release image change and prepare release
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Baillie <martin@baillie.email>
  • Loading branch information
Martin Baillie committed Oct 4, 2020
1 parent ad53b51 commit 112d0bd
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 17 deletions.
39 changes: 26 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: release

on:
push:
# tags:
# - "v*"
tags:
- "v*"

jobs:
build:
Expand All @@ -16,24 +16,37 @@ jobs:
include:
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
uname: linux
- target: x86_64-apple-darwin
os: ubuntu-latest
uname: darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Build
- name: Build Linux
if: matrix.os == 'ubuntu-latest'
run: |
docker run --rm -t \
-v $HOME/.cargo/registry/:/root/.cargo/registry \
-v "$(pwd)":/root/src \
joseluisq/rust-linux-darwin-builder:1.46.0 \
sh -c 'cargo build --release --target ${{ matrix.target }}'
-v "$(pwd)":/volume \
clux/muslrust:nightly \
cargo build --release --target ${{ matrix.target }}
- name: Prepare macOS
if: matrix.os == 'macos-latest'
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: ${{ matrix.target }}
override: true
- name: Build macOS
if: matrix.os == 'macos-latest'
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: build
args: --release --target ${{ matrix.target }}
- name: Upload
uses: actions/upload-artifact@v2
with:
name: vaultsign-${{ matrix.uname }}-amd64
name: vaultsign-${{ matrix.os }}-amd64
path: target/${{ matrix.target }}/release/vaultsign
if-no-files-found: error

Expand All @@ -46,9 +59,9 @@ jobs:
uses: actions/download-artifact@v2
- name: Layout
run: |
mv vaultsign-linux-amd64/vaultsign ./vaultsign-linux-amd64
mv vaultsign-darwin-amd64/vaultsign ./vaultsign-darwin-amd64
rm -rf vaultsign-linux-amd64 vaultsign-darwin-amd64
mv vaultsign-ubuntu-latest-amd64/vaultsign ./vaultsign-linux-amd64
mv vaultsign-macos-latest-amd64/vaultsign ./vaultsign-darwin-amd64
rm -rf vaultsign-ubuntu-latest-amd64 vaultsign-macos-latest-amd64
- name: Checksum
run: make SHA256SUMS
- name: Create Release
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# cargo-features = ["strip"]
cargo-features = ["strip"]

[package]
name = "vaultsign"
Expand All @@ -23,5 +23,5 @@ serde = { version = "1.0.116", features = ["derive"] }
serde_json = "1.0.57"
tokio = { version = "0.2.2", features = ["macros"] }

# [profile.release]
# strip = "symbols"
[profile.release]
strip = "symbols"
6 changes: 5 additions & 1 deletion README.org
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ nix-shell --pure --run "make release"
Otherwise, any sufficiently modern Rust toolchain should be able to compile =vaultsign=.

#+BEGIN_QUOTE
NOTE: =vaultsign= links against your system's native OpenSSL distribution. Ensure you have the dependencies listed in [[shell.nix][shell.nix]].
NOTE: regarding OpenSSL.

If you are compiling from source, =vaultsign= links against your system's native OpenSSL distribution. Ensure you have the dependencies listed in [[shell.nix][shell.nix]].

If you are using the pre-compiled Darwin version from the [[https://github.com/martinbaillie/vaultsign/releases/][releases]] section then it is not static so ensure you have OpenSSL version 1.1 installed.
#+END_QUOTE
* GitHub Verification
If you want that coveted GitHub green verified tick for your Vault-signed
Expand Down

0 comments on commit 112d0bd

Please sign in to comment.