Skip to content

Rename DBG artifacts #444

Rename DBG artifacts

Rename DBG artifacts #444

Workflow file for this run

name: OSX
on:
pull_request:
paths:
- '**.c'
- '**.h'
- '**.m'
- '**.sh'
- .github/workflows/macos.yml
- '**.am'
- MacOSX/**
- configure.ac
push:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
strategy:
matrix:
os: [macos-26, macos-15, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Checkout OpenSSL sources
uses: actions/checkout@v6
with:
repository: openssl/openssl
ref: openssl-3.5
path: openssl
- name: Get OpenSSL commit hash
id: openssl_hash
run: echo "hash=$(cd openssl && git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v5
id: cache
with:
path: openssl_bin
key: ${{ matrix.os }}-OpenSSL-${{ steps.openssl_hash.outputs.hash }}
- run: sh MacOSX/build-openssl-macos.sh
if: steps.cache.outputs.cache-hit != 'true'
- run: .github/setup-macos.sh
env:
KEY_PASSWORD: ${{ secrets.DEV_ID_PASSWORD }}
DEV_ID_INSTALLER: ${{ secrets.DEV_ID_INSTALLER }}
DEV_ID_APPLICATION: ${{ secrets.DEV_ID_APPLICATION }}
- run: .github/build.sh
env:
CODE_SIGN_IDENTITY: ${{ secrets.CODE_SIGN_IDENTITY }}
DEVELOPMENT_TEAM: ${{ secrets.DEVELOPMENT_TEAM }}
INSTALLER_SIGN_IDENTITY: ${{ secrets.INSTALLER_SIGN_IDENTITY }}
- run: MacOSX/notarize
if: ${{ startsWith(github.ref, 'refs/tags/') && github.repository == 'OpenSC/OpenSC' }}
env:
DEVELOPMENT_TEAM: ${{ secrets.DEVELOPMENT_TEAM }}
NOTARIZATION_PASSWORD: ${{ secrets.NOTARIZATION_PASSWORD }}
APPLE_ID: ${{ secrets.APPLE_ID }}
- run: .github/cleanup-macos.sh
env:
KEY_PASSWORD: ${{ secrets.DEV_ID_PASSWORD }}
- name: Cache build artifacts
uses: actions/upload-artifact@v6
with:
name: opensc-build-${{ matrix.os }}
path:
OpenSC*.dmg
- name: Upload test logs
uses: actions/upload-artifact@v6
if: failure()
with:
name: ${{ matrix.os }}-logs
path: |
config.log
build-libressl:
strategy:
matrix:
os: [macos-26, macos-15, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- run: .github/setup-macos.sh libressl
- run: .github/build.sh libressl
- run: .github/cleanup-macos.sh
- name: Upload test logs
uses: actions/upload-artifact@v6
if: failure()
with:
name: ${{ matrix.os }}-libressl-logs
path: |
config.log
push-artifacts:
runs-on: macos-latest
needs: [build]
steps:
- uses: actions/checkout@v6
- name: Pull build artifacts
uses: actions/download-artifact@v7
with:
name: opensc-build-macos-15
- run: git config --global user.email "builds@github.com"
- run: git config --global user.name "Github Actions";
- run: .github/push_artifacts.sh "Github Actions ${GITHUB_REF}"
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
if: ${{ github.repository == 'OpenSC/OpenSC' }}