Skip to content

Commit

Permalink
Build for OSX on Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
yesseruser authored Oct 10, 2024
1 parent 0fa25f1 commit 14b992e
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
file: windows-x64.zip

build-mac:
runs-on: macos-latest
runs-on: ubuntu-latest
env:
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
steps:
Expand All @@ -72,16 +72,6 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install packages
uses: tecolicom/[email protected]
with:
tools: 'freeimage freetype'
cache: yes
- name: Symlink packages
run: |
mkdir -p ~/.nuget/packages/dotnet-mgcb/3.8.1.303/tools/net6.0/any/
ln -s /opt/homebrew/lib/libfreeimage.dylib ~/.nuget/packages/dotnet-mgcb/3.8.1.303/tools/net6.0/any/libFreeImage.dylib
ln -s /opt/homebrew/lib/freetype6.dylib ~/.nuget/packages/dotnet-mgcb/3.8.1.303/tools/net6.0/any/freetype6.dylib
- name: Set up butler
run: |
curl -L -o butler.zip https://broth.itch.zone/butler/darwin-amd64/LATEST/archive/default
Expand All @@ -90,7 +80,7 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Publish
run: dotnet publish -c Release -o ./release -p:PublishSingleFile=True ./Pong.Desktop/Pong.Desktop.csproj
run: dotnet publish -r osx-arm64 -c Release -o ./release -p:PublishSingleFile=True ./Pong.Desktop/Pong.Desktop.csproj
- name: Move files to app bundle
run: |
mkdir -p ./mac-bundle/Contents/Resources/Content
Expand Down

0 comments on commit 14b992e

Please sign in to comment.