Skip to content

fix(ci): remove some osx targets #4

fix(ci): remove some osx targets

fix(ci): remove some osx targets #4

Workflow file for this run

name: Developer release
on:
push:
branches:
- develop
jobs:
dev-build:
name: Develop build
# All architectures supported
strategy:
matrix:
arch: ['win-x64', 'win-arm64', 'linux-x64', 'linux-arm64', 'osx-x64', 'osx-arm64']
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.201
- name: Build
shell: bash
# run: bash build-all.sh
run: |
version=$(cat src/GICutscenes.csproj | grep -oP "<Version>\K([0-9]\.[0-9]\.[0-9])")
release_name="GICutscenes-$version-${GITHUB_SHA::6}-${{ matrix.arch }}"
release_name_standalone="$release_name-standalone"
# Self contained
dotnet publish -c Release -r "${{ matrix.arch }}" -o "$release_name_standalone" --self-contained
# Framework dependant
dotnet publish -c Release -r "${{ matrix.arch }}" -o "$release_name" --self-contained false -p:PublishTrimmed=false
if [ "${{ matrix.arch }}" == "win-x64" ]; then
# Pack for standalone version
7z a -tzip "${release_name_standalone}.zip" "./${release_name_standalone}/*"
# Pack for Framework dependant version
7z a -tzip "${release_name}.zip" "./${release_name}/*"
else
tar czvf "${release_name_standalone}.tar.gz" "$release_name_standalone"
tar czvf "${release_name}.tar.gz" "$release_name"
fi
rm -r "$release_name_standalone"
rm -r "$release_name"