Skip to content

Refactor interop to use CsWin32/LibraryImport #59

Refactor interop to use CsWin32/LibraryImport

Refactor interop to use CsWin32/LibraryImport #59

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
paths-ignore:
- '**/*.md'
- '**/*.txt'
jobs:
build:
name: Build
runs-on: windows-latest
strategy:
matrix:
configuration: [Release]
platform: [x64, x86, ARM64]
env:
Solution_Name: FluentAutoClicker.sln
Dir_Name: FluentAutoClicker
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
- name: Restore the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Decode the pfx
run: |
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.BASE64_ENCODED_PFX }}")
$certificatePath = "GitHubActionsWorkflow.pfx"
[IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
- name: Create the app package
run: msbuild $env:Solution_Name /p:Configuration=$env:Configuration /p:Platform=$env:Platform /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:AppxPackageDir="$env:Appx_Package_Dir" /p:GenerateAppxPackageOnBuild=true
env:
Appx_Bundle: Never
Appx_Package_Build_Mode: SideloadOnly
Appx_Package_Dir: Packages\
Configuration: ${{ matrix.configuration }}
Platform: ${{ matrix.platform }}
- name: Remove the pfx
run: Remove-Item -path GitHubActionsWorkflow.pfx
- name: Upload MSIX package
uses: actions/upload-artifact@v4
with:
name: MSIX Package (${{ matrix.configuration }}, ${{ matrix.platform }})
path: ${{ github.workspace }}\${{ env.Dir_Name }}\Packages\**
compression-level: 0