Skip to content

Commit

Permalink
Sign all executables. (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch authored Jul 8, 2024
1 parent ef9a5bf commit 12f461f
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build_esptool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobs:
EFUSE_DIR: ./espefuse/efuse_defs/

steps:
- name: Show inputs
if: github.event_name == 'workflow_dispatch'
run: echo "${{ toJSON(github.event.inputs) }}"

- name: Checkout repository
uses: actions/checkout@v4

Expand All @@ -71,11 +75,6 @@ jobs:
pyinstaller --distpath ./${{ env.DISTPATH }} -F --icon=ci/espressif.ico espsecure.py
pyinstaller --distpath ./${{ env.DISTPATH }} -F --icon=ci/espressif.ico esp_rfc2217_server.py
- name: Set executable name
id: exe_path
run: |
echo "EXE_NAME=./${{ env.DISTPATH }}/esptool${{ matrix.EXTEN }}" >> $GITHUB_OUTPUT
- name: Sign Windows binary
if: (runner.os == 'Windows' && (github.event_name == 'release' || github.event.inputs.sign-windows == 'true'))
uses: toitlang/action-code-sign@5da128f4fb4f719c1b667867815f6c31e743b111 # v1.1.0
Expand All @@ -85,7 +84,7 @@ jobs:
certificate-password: ${{ secrets.DIGICERT_PASSWORD }}
certificate-fingerprint: ${{ secrets.DIGICERT_FINGERPRINT }}
keypair-alias: ${{ vars.DIGICERT_KEYPAIR_ALIAS }}
path: ${{ steps.exe_path.outputs.EXE_NAME }}
path: ${{ env.DISTPATH }}

- name: Sign macOS binary
if: (runner.os == 'macOS' && (github.event_name == 'release' || github.event.inputs.sign-macos == 'true'))
Expand All @@ -96,7 +95,11 @@ jobs:
username: ${{ secrets.AC_USERNAME }}
password: ${{ secrets.AC_PASSWORD }}
apple-team-id: 33DS2ZRDST
app-path: ${{ steps.exe_path.outputs.EXE_NAME }}
app-path: |
./${{ env.DISTPATH }}/esptool
./${{ env.DISTPATH }}/espefuse
./${{ env.DISTPATH }}/espsecure
./${{ env.DISTPATH }}/esp_rfc2217_server
- name: Test binaries
shell: bash
Expand Down

0 comments on commit 12f461f

Please sign in to comment.