CI: add macOS debug artifacts
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
2798ef3819
commit
c3c87659cf
1 changed files with 13 additions and 5 deletions
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
|
@ -159,12 +159,20 @@ jobs:
|
||||||
macos:
|
macos:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
debug: [0, 1]
|
||||||
target: [universal-10.15]
|
target: [universal-10.15]
|
||||||
runs-on: macos-12
|
runs-on: macos-12
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
- name: Set debug or release
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [ "${{ matrix.debug }}" -eq 1 ]; then
|
||||||
|
echo "TARGET_SUFFIX=-debug" >> $GITHUB_ENV
|
||||||
|
echo "PAWPAW_DEBUG=1" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
- name: Set up cache
|
- name: Set up cache
|
||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
@ -179,7 +187,7 @@ jobs:
|
||||||
src/Rack/dep/libarchive-3.4.3
|
src/Rack/dep/libarchive-3.4.3
|
||||||
src/Rack/dep/libsamplerate-0.1.9
|
src/Rack/dep/libsamplerate-0.1.9
|
||||||
src/Rack/dep/zstd-1.4.5
|
src/Rack/dep/zstd-1.4.5
|
||||||
key: macos-${{ matrix.target }}-v${{ env.CACHE_VERSION }}
|
key: macos-${{ matrix.target }}${{ env.TARGET_SUFFIX }}-v${{ env.CACHE_VERSION }}
|
||||||
- name: Setup dependencies
|
- name: Setup dependencies
|
||||||
run: |
|
run: |
|
||||||
./deps/PawPaw/.github/workflows/bootstrap-deps.sh macos-${{ matrix.target }}
|
./deps/PawPaw/.github/workflows/bootstrap-deps.sh macos-${{ matrix.target }}
|
||||||
|
@ -191,7 +199,7 @@ jobs:
|
||||||
if: steps.cache.outputs.cache-hit == 'true'
|
if: steps.cache.outputs.cache-hit == 'true'
|
||||||
uses: hendrikmuhs/ccache-action@v1.2
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
with:
|
with:
|
||||||
key: ccache-macos-${{ matrix.target }}-v${{ env.CACHE_VERSION }}
|
key: ccache-macos-${{ matrix.target }}${{ env.TARGET_SUFFIX }}-v${{ env.CACHE_VERSION }}
|
||||||
- name: Build macOS (base)
|
- name: Build macOS (base)
|
||||||
if: steps.cache.outputs.cache-hit == 'true'
|
if: steps.cache.outputs.cache-hit == 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -215,14 +223,14 @@ jobs:
|
||||||
- name: Rename macOS bundle
|
- name: Rename macOS bundle
|
||||||
if: steps.cache.outputs.cache-hit == 'true'
|
if: steps.cache.outputs.cache-hit == 'true'
|
||||||
run: |
|
run: |
|
||||||
mv ${{ github.event.repository.name }}-macOS.pkg ${{ github.event.repository.name }}-macOS-${{ matrix.target }}-${{ github.event.pull_request.number || env.SHA8 }}.pkg
|
mv ${{ github.event.repository.name }}-macOS.pkg ${{ github.event.repository.name }}-macOS-${{ matrix.target }}${{ env.TARGET_SUFFIX }}-${{ github.event.pull_request.number || env.SHA8 }}.pkg
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ github.event.repository.name }}-macOS-${{ matrix.target }}-${{ github.event.pull_request.number || env.SHA8 }}
|
name: ${{ github.event.repository.name }}-macOS-${{ matrix.target }}${{ env.TARGET_SUFFIX }}-${{ github.event.pull_request.number || env.SHA8 }}
|
||||||
path: |
|
path: |
|
||||||
${{ github.event.repository.name }}-*.pkg
|
${{ github.event.repository.name }}-*.pkg
|
||||||
- uses: softprops/action-gh-release@v1
|
- uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: ${{ matrix.debug == '0' && startsWith(github.ref, 'refs/tags/') }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref_name }}
|
tag_name: ${{ github.ref_name }}
|
||||||
name: ${{ github.ref_name }}
|
name: ${{ github.ref_name }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue