Skip to content

Commit

Permalink
add win-from-mac job, disable osslsigncode in debian
Browse files Browse the repository at this point in the history
Debian trixie "lost" the osslsigncode package.
  • Loading branch information
vszakats committed Apr 28, 2024
1 parent 7c9a44e commit 9932030
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -2,6 +2,7 @@
# SPDX-License-Identifier: MIT
---
# https://docs.github.com/actions/learn-github-actions
# https://github.com/actions/upload-artifact
name: build
on:
push:
Expand Down Expand Up @@ -543,6 +544,33 @@ jobs:
*-*-macos*.*
urls.txt
win-llvm-from-mac:
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 8
- name: 'build'
env:
CW_LLVM_MINGW_DL: '1'
CW_LLVM_MINGW_ONLY: '0'
run: |
export CW_CONFIG='${{ github.ref_name }}-win'
export CW_REVISION='${{ github.sha }}'
. ./_versions.sh
sh -c ./_ci-mac-homebrew.sh
- name: 'list dependencies'
run: cat urls.txt
- uses: actions/upload-artifact@v4
with:
name: 'curl-windows-llvm-from-mac'
retention-days: 5
path: |
*-*-mingw*.*
urls.txt
win-llvm:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -569,7 +597,6 @@ jobs:
- name: 'list dependencies'
run: cat urls.txt
# https://github.com/actions/upload-artifact
- uses: actions/upload-artifact@v4
with:
name: 'curl-windows-llvm'
Expand Down Expand Up @@ -604,7 +631,6 @@ jobs:
- name: 'list dependencies'
run: cat urls.txt
# https://github.com/actions/upload-artifact
- uses: actions/upload-artifact@v4
with:
name: 'curl-windows-gcc-noarm64'
Expand Down
7 changes: 6 additions & 1 deletion _build.sh
Expand Up @@ -452,7 +452,12 @@ fi

if [ "${_OS}" = 'win' ] && \
[ -s "${SIGN_CODE_KEY}" ]; then
osslsigncode --version # We need 2.2 or newer
if command -v osslsigncode >/dev/null 2>&1; then
osslsigncode --version # We need 2.2 or newer
elif [ -n "${SIGN_PKG_KEY_PASS:+1}" ]; then
unset SIGN_CODE_KEY_PASS
echo "! WARNING: osslsigncode not found, code signing disabled."
fi
fi

_ori_path="${PATH}"
Expand Down
3 changes: 2 additions & 1 deletion _ci-linux-debian.sh
Expand Up @@ -21,7 +21,8 @@ fi
[[ "${CW_CONFIG:-}" = *'boringssl'* ]] && extra+=' golang'

if [[ "${CW_CONFIG:-}" = *'win'* ]]; then
extra+=' mingw-w64 osslsigncode wine64'
extra+=' mingw-w64 wine64'
# extra+=' osslsigncode'
if [[ "${CW_CONFIG:-}" = *'boringssl'* ]]; then
extra+=' nasm'
fi
Expand Down

0 comments on commit 9932030

Please sign in to comment.