Skip to content

Pinvoke x11 xrandr for linux resolutions #138

Pinvoke x11 xrandr for linux resolutions

Pinvoke x11 xrandr for linux resolutions #138

Workflow file for this run

name: .NET
env:
PACK_ID: Sims1WidescreenPatcher
PACK_VER: 3.9.0
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
workflow_dispatch:
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore Sims1WidescreenPatcher/Sims1WidescreenPatcher.csproj -r linux-x64
- name: Publish
run: dotnet publish Sims1WidescreenPatcher/Sims1WidescreenPatcher.csproj -c Release -o artifacts -p:VersionPrefix=${{ env.PACK_VER }} -p:PublishSingleFile=true -p:SelfContained=true -p:DebugType=embedded -p:IncludeNativeLibrariesForSelfExtract=true -p:EnableCompressionInSingleFile=true -p:PublishTrimmed=true -p:RuntimeIdentifier=linux-x64
- name: Upload a Build Artifact
if: github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'master'
uses: actions/[email protected]
with:
name: ${{ env.PACK_ID }}.${{ env.PACK_VER }}+linux.x64
path: artifacts/Sims1WidescreenPatcher
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore Sims1WidescreenPatcher/Sims1WidescreenPatcher.csproj -r win-x64
- name: Publish
run: dotnet publish Sims1WidescreenPatcher/Sims1WidescreenPatcher.csproj -c Release -o artifacts -p:VersionPrefix=${{ env.PACK_VER }} -p:PublishSingleFile=true -p:SelfContained=true -p:DebugType=embedded -p:IncludeNativeLibrariesForSelfExtract=true -p:EnableCompressionInSingleFile=true -p:PublishTrimmed=true -p:RuntimeIdentifier=win-x64
- name: Upload a Build Artifact
if: github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'master'
uses: actions/[email protected]
with:
name: ${{ env.PACK_ID }}.${{ env.PACK_VER }}+win.x64
path: artifacts/Sims1WidescreenPatcher.exe
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore Sims1WidescreenPatcher/Sims1WidescreenPatcher.csproj -r osx-x64
- name: Publish
run: dotnet msbuild Sims1WidescreenPatcher/Sims1WidescreenPatcher.csproj -t:BundleApp -p:RuntimeIdentifier=osx-x64 -p:UseAppHost=true -p:Configuration=Release -p:TargetFramework=net6.0 -p:VersionPrefix=${{ env.PACK_VER }} -p:PublishSingleFile=true -p:SelfContained=true -p:DebugType=embedded -p:IncludeNativeLibrariesForSelfExtract=true -p:EnableCompressionInSingleFile=true -p:PublishTrimmed=true
- name: Move App Bundle to Artifacts
run: mkdir artifacts && mv Sims1WidescreenPatcher/bin/Release/net6.0/osx-x64/publish/Sims1WidescreenPatcher.app artifacts/
- name: Set Executable
run: chmod -R +x artifacts/Sims1WidescreenPatcher.app/Contents/MacOS/
- name: Tar to Preserve Permissions
run: tar -cvf Sims1WidescreenPatcher.${{ env.PACK_VER }}+macOS.x64.tar artifacts/
- name: Upload a Build Artifact
if: github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'master'
uses: actions/[email protected]
with:
name: ${{ env.PACK_ID }}.${{ env.PACK_VER }}+macOS.x64
path: ${{ env.PACK_ID }}.${{ env.PACK_VER }}+macOS.x64.tar