ci: fix macOS and Windows builds when ref name contains a slash
This commit is contained in:
parent
d0f126fb45
commit
338d946b9a
1 changed files with 24 additions and 7 deletions
31
.github/workflows/build.yml
vendored
31
.github/workflows/build.yml
vendored
|
|
@ -129,16 +129,28 @@ jobs:
|
||||||
build_for_macos:
|
build_for_macos:
|
||||||
name: macOS 11
|
name: macOS 11
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
env:
|
|
||||||
install_name: "sfizz-${{ github.ref_name }}-macos"
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Update bash
|
||||||
|
run: brew install bash
|
||||||
|
- name: Set install_name
|
||||||
|
run: |
|
||||||
|
ghref=${{ github.ref_name }}
|
||||||
|
echo "install_name=sfizz-${ghref//'/'/'-'}-macos" >> "$GITHUB_ENV"
|
||||||
|
- name: Show summary
|
||||||
|
run: |
|
||||||
|
echo "install_name: ${{ env.install_name }}"
|
||||||
|
echo "BASH_VERSION: $BASH_VERSION"
|
||||||
|
system_profiler SPSoftwareDataType
|
||||||
|
cmake --version
|
||||||
|
gcc -v
|
||||||
|
xcodebuild -version
|
||||||
|
- name: Install dependencies
|
||||||
|
if: ${{ github.ref_type == 'branch' }}
|
||||||
|
run: brew install abseil
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install dependencies
|
|
||||||
if: ${{ github.ref_type == 'branch' }}
|
|
||||||
run: brew install abseil
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: |
|
run: |
|
||||||
options=(
|
options=(
|
||||||
|
|
@ -219,9 +231,14 @@ jobs:
|
||||||
pkg_platform: Win64
|
pkg_platform: Win64
|
||||||
release_arch: x64
|
release_arch: x64
|
||||||
bits: 64
|
bits: 64
|
||||||
env:
|
|
||||||
install_name: sfizz-${{ github.ref_name }}-win${{ matrix.bits }}
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set install name
|
||||||
|
run: |
|
||||||
|
$stripped_name="${{ github.ref_name }}".replace('/', '-')
|
||||||
|
echo "install_name=sfizz-$stripped_name-win${{ matrix.bits }}" >> "${env:GITHUB_ENV}"
|
||||||
|
- name: Show summary
|
||||||
|
run: |
|
||||||
|
echo "install_name: $env:install_name"
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue