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

attempt to fix gpg signing #635

Merged
merged 4 commits into from
Feb 3, 2021
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
8 changes: 5 additions & 3 deletions .github/ci.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -Eeuxo pipefail

DATE=`date "+%Y-%m-%d"`
DATE=$(date "+%Y-%m-%d")
[[ "$RUNNER_OS" == 'Windows' ]] && IS_WIN=true || IS_WIN=false
BIN=bin
EXT=""
Expand Down Expand Up @@ -144,10 +144,12 @@ install_system_deps() {
}

sign() {
gpg --batch --import <(echo "$SIGNING_KEY")
set +x
gpg --yes --quiet --batch --import <(echo "$SIGNING_KEY")
fingerprint="$(gpg --list-keys | grep galois -a1 | head -n1 | awk '{$1=$1};1')"
echo "$fingerprint:6" | gpg --import-ownertrust
gpg --yes --no-tty --batch --pinentry-mode loopback --default-key "$fingerprint" --detach-sign -o "$1".sig --passphrase-file <(echo "$SIGNING_PASSPHRASE") "$1"
set -x
}

setup_dist() {
Expand All @@ -168,7 +170,7 @@ zip_dist() {
bundle_crux_llvm_files() {
setup_dist
extract_exe crux-llvm dist/bin
if ! $IS_WIN ; then
if ! $IS_WIN; then
extract_exe crux-llvm-svcomp dist/bin
fi
cp crux-llvm/README.md dist/doc
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/crux-llvm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,14 @@ jobs:

- shell: bash
run: .github/ci.sh bundle_crux_llvm_files
if: startsWith(github.ref, 'refs/heads/release-')
env:
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
VERSION: ${{ needs.outputs.outputs.crux-llvm-version }}

- uses: actions/upload-artifact@v2
if: startsWith(github.ref, 'refs/heads/release-')
with:
path: crux-llvm-*.tar.gz*
name: crux-llvm-${{ runner.os }}-${{ matrix.ghc }}
2 changes: 2 additions & 0 deletions .github/workflows/crux-mir-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,14 @@ jobs:

- shell: bash
run: .github/ci.sh bundle_crux_mir_files
if: startsWith(github.ref, 'refs/heads/release-')
env:
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
VERSION: ${{ needs.outputs.outputs.crux-mir-version }}

- uses: actions/upload-artifact@v2
if: startsWith(github.ref, 'refs/heads/release-')
with:
path: crux-mir-*.tar.gz*
name: crux-mir-${{ runner.os }}-${{ matrix.ghc }}