Github: Publish mac test results and full build log; minor gh action … #894
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build for Mac | |
on: [ push, pull_request ] | |
jobs: | |
build_mac: | |
name: CI for macOS | |
runs-on: macos-latest | |
steps: | |
- name: Checkout for macOS | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Select Xcode version | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '15' | |
- name: Build for macOS | |
run: TRAVIS_OS_NAME=osx travis/build.sh | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action/macos@v2 | |
if: always() | |
with: | |
files: | | |
osx/build/reports/junit.xml | |
- name: Upload for macOS | |
env: | |
gh_ed25519_key: ${{ secrets.GH_ENCRYPTED_ED25519_KEY }} | |
gh_ed25519_iv: ${{ secrets.GH_ENCRYPTED_ED25519_IV }} | |
run: TRAVIS_OS_NAME=osx travis/upload.sh | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: deadbeef-macos-universal | |
path: osx/build/Release/*.zip | |
if-no-files-found: error | |
- name: Upload logs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build-logs | |
path: osx/build/Release/*.log | |
if-no-files-found: warn |