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

ci: added tag check to sign actions #191

Merged
Merged
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
23 changes: 13 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ jobs:
run: ${{ matrix.postinstall }}

- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: sdk cache
if: ${{ matrix.sdk }}
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: sdk
with:
Expand All @@ -199,7 +199,7 @@ jobs:
tar -C depends/SDKs -xf depends/sdk-sources/${{ env.sdk-filename }}

- name: dependency cache
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: depends
with:
Expand All @@ -212,7 +212,7 @@ jobs:
if: matrix.host != 'x86_64-pc-windows-msvc'

- name: ccache
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: ccache
with:
Expand Down Expand Up @@ -302,7 +302,7 @@ jobs:
esac

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libdogecoin-${{ github.sha }}-${{ matrix.name }}
path: |
Expand All @@ -311,6 +311,7 @@ jobs:
sign-x86_64-win:
needs: build
runs-on: windows-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -351,14 +352,15 @@ jobs:
certificate-password: ${{ secrets.LIBDOGECOIN_DEV_WINDOWS_CERT_PASSWORD }}

- name: Upload artifacts (x86_64-win)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libdogecoin-${{ github.sha }}-x86_64-win-signed
path: .

sign-x86_64-win-native:
needs: build
runs-on: windows-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -399,14 +401,15 @@ jobs:
certificate-password: ${{ secrets.LIBDOGECOIN_DEV_WINDOWS_CERT_PASSWORD }}

- name: Upload artifacts (x86_64-win-native)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libdogecoin-${{ github.sha }}-x86_64-win-native-signed
path: .

sign-i686-win:
needs: build
runs-on: windows-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -447,14 +450,15 @@ jobs:
certificate-password: ${{ secrets.LIBDOGECOIN_DEV_WINDOWS_CERT_PASSWORD }}

- name: Upload artifacts (i686-win)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libdogecoin-${{ github.sha }}-i686-win-signed
path: .

sign-x86_64-macos:
needs: build
runs-on: macos-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -498,8 +502,7 @@ jobs:
/usr/bin/codesign --force --keychain ~/Library/Keychains/build.keychain -s $MACOS_CODE_CERT_TEAM_ID --deep --options=runtime "$MACOS_EXECUTABLE_PATH"

- name: Upload artifacts (i686-win)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libdogecoin-${{ github.sha }}-i686-win-signed
path: .