Try different way to install wine #54
Workflow file for this run
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
name: Release to itch.io | |
on: | |
push: | |
tags: | |
- 'v*' | |
env: | |
ITCH_USER_NAME: apos | |
ITCH_GAME_NAME: mitten | |
PROJECT_PATH: Platforms/DesktopGL | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
env: | |
MGFXC_WINE_PATH: /home/runner/.winemonogame | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Get version from tag | |
run: | | |
TAGVERSION=$(git describe --tags --abbrev=0) | |
echo "TAGVERSION=${TAGVERSION:1}" >> $GITHUB_ENV | |
- name: Setup Wine | |
run: | | |
sudo apt update | |
sudo apt install p7zip-full curl | |
curl -s https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor | sudo tee /usr/share/keyrings/winehq.gpg > /dev/null | |
echo deb [signed-by=/usr/share/keyrings/winehq.gpg] http://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -cs) main | sudo tee /etc/apt/sources.list.d/winehq.list | |
sudo apt update | |
sudo apt install wine64 | |
wget -qO- https://raw.githubusercontent.com/MonoGame/MonoGame/2e72fcfa4144ea5bc413963af8f97a2d5e902338/Tools/MonoGame.Effect.Compiler/mgfxc_wine_setup.sh | sh | |
- name: Build Windows | |
run: dotnet publish ${{ env.PROJECT_PATH }} -r win-x64 -c Release --output artifacts/windows --self-contained -p:Version=${{ env.TAGVERSION }} | |
- name: Build Osx | |
run: dotnet publish ${{ env.PROJECT_PATH }} -r osx-x64 -c Release --output artifacts/osx --self-contained -p:Version=${{ env.TAGVERSION }} | |
- name: Build Linux | |
run: dotnet publish ${{ env.PROJECT_PATH }} -r linux-x64 -c Release --output artifacts/linux --self-contained -p:Version=${{ env.TAGVERSION }} | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '14.x' | |
- name: Publish Windows build to itch.io | |
uses: josephbmanley/butler-publish-itchio-action@master | |
env: | |
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }} | |
CHANNEL: windows | |
ITCH_GAME: ${{ env.ITCH_GAME_NAME }} | |
ITCH_USER: ${{ env.ITCH_USER_NAME }} | |
PACKAGE: artifacts/windows | |
VERSION: ${{ env.TAGVERSION }} | |
- name: Publish OSX build to itch.io | |
uses: josephbmanley/butler-publish-itchio-action@master | |
env: | |
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }} | |
CHANNEL: osx | |
ITCH_GAME: ${{ env.ITCH_GAME_NAME }} | |
ITCH_USER: ${{ env.ITCH_USER_NAME }} | |
PACKAGE: artifacts/osx | |
VERSION: ${{ env.TAGVERSION }} | |
- name: Publish Linux build to itch.io | |
uses: josephbmanley/butler-publish-itchio-action@master | |
env: | |
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }} | |
CHANNEL: linux | |
ITCH_GAME: ${{ env.ITCH_GAME_NAME }} | |
ITCH_USER: ${{ env.ITCH_USER_NAME }} | |
PACKAGE: artifacts/linux | |
VERSION: ${{ env.TAGVERSION }} |