forked from MonoGame/MonoGame
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd87586
commit 73d5077
Showing
2 changed files
with
87 additions
and
14 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Build"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
pipeline: | ||
name: build-${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-latest, macos-latest, ubuntu-latest] | ||
abi: [ x64 ] | ||
include: | ||
- os: macos-latest | ||
abi: arm64 | ||
fail-fast: false | ||
steps: | ||
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }} | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '8.0.x' | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'microsoft' | ||
java-version: '17' | ||
|
||
- name: Disable annotations | ||
run: echo "::remove-matcher owner=csc::" | ||
|
||
- name: install wine64 on linux | ||
run: | | ||
sudo apt install p7zip-full curl | ||
sudo dpkg --add-architecture i386 | ||
sudo mkdir -pm755 /etc/apt/keyrings | ||
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key | ||
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources | ||
sudo apt update && sudo apt install --install-recommends winehq-stable | ||
if: runner.os == 'Linux' | ||
|
||
- name: Install Arial Font | ||
run: | | ||
echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | sudo debconf-set-selections | ||
sudo apt install -y ttf-mscorefonts-installer | ||
sudo fc-cache | ||
fc-match Arial | ||
if: runner.os == 'Linux' | ||
|
||
- name: install wine64 on macos | ||
run: brew install wine-stable p7zip | ||
if: runner.os == 'macOS' | ||
|
||
- name: Setup Wine | ||
run: wget -qO- https://monogame.net/downloads/net8_mgfxc_wine_setup.sh | bash | ||
if: runner.os != 'Windows' | ||
|
||
#Not working yet they crash | ||
- name: Test Wine | ||
run: wine64 dotnet --info | ||
env: | ||
WINEPREFIX: /home/runner/.winemonogame | ||
if: runner.os == 'Linux' | ||
|
||
#Not working yet they crash | ||
- name: Test Wine | ||
run: wine64 dotnet --info | ||
env: | ||
WINEPREFIX: /Users/runner/.winemonogame | ||
if: runner.os == 'macOS' | ||
|
||
- name: Download dotnet-install.sh | ||
run: | | ||
wget https://dot.net/v1/dotnet-install.sh | ||
chmod u+x dotnet-install.sh | ||
ls -la | ||
working-directory: ${{github.workspace}} | ||
if: runner.os != 'Windows' | ||
|
||
- name: Install x64 dotnet | ||
run: ${{github.workspace}}/dotnet-install.sh --architecture ${{runner.abi}} --install-dir ${{github.workspace}}/dotnet64 --version latest | ||
working-directory: ${{github.workspace}} | ||
if: runner.os != 'Windows' |