From 0c58fefddf26b9405c6ff3fd65f7362c729f899c Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 7 Oct 2021 22:52:29 -0400 Subject: [PATCH] Add cxxbridge-cmd build --- .github/workflows/cxxbridge-cmd.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/cxxbridge-cmd.yml diff --git a/.github/workflows/cxxbridge-cmd.yml b/.github/workflows/cxxbridge-cmd.yml new file mode 100644 index 0000000..7fd378d --- /dev/null +++ b/.github/workflows/cxxbridge-cmd.yml @@ -0,0 +1,29 @@ +name: cxxbridge-cmd + +on: + push: + tags: + - cxxbridge-cmd + +jobs: + build: + name: cxxbridge-cmd + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: dtolnay/rust-toolchain@stable + - run: cargo install cxxbridge-cmd + - id: which + run: echo "::set-output name=which::$(which cxxbridge)" + - run: echo "$PRIVATE_KEY" | gpg --import + env: + PRIVATE_KEY: ${{secrets.PRIVATE_KEY}} + - run: gpg --output cxxbridge.sig --detach-sig ${{steps.which.outputs.which}} + - run: gpg --output signing-key.gpg --dearmor signing-key.asc + - run: gpg --no-default-keyring --keyring ./signing-key.gpg --verify cxxbridge.sig ${{steps.which.outputs.which}} + - uses: softprops/action-gh-release@v1 + with: + files: | + ${{steps.which.outputs.which}} + cxxbridge.sig + fail_on_unmatched_files: true