Skip to content

Add a second workflow #1

Add a second workflow

Add a second workflow #1

Workflow file for this run

name: Build

Check failure on line 1 in .github/workflows/pipelinetests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pipelinetests.yml

Invalid workflow file

Workflow 'Build' cannot listen to itself.
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'