Skip to content

Commit

Permalink
Add a second workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Aug 27, 2024
1 parent bd87586 commit 73d5077
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,6 @@ jobs:
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
Expand Down
87 changes: 87 additions & 0 deletions .github/workflows/pipelinetests.yml
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'

0 comments on commit 73d5077

Please sign in to comment.