Skip to content

chore: add windows ci build #1

chore: add windows ci build

chore: add windows ci build #1

Workflow file for this run

name: Wpf Continuous Integration
# Trigger on every master branch push and pull request
on:
push:
branches:
- master
- patch-*
- ci-build
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
targetplatform: [x86, x64]
runs-on: windows-latest
env:
App_Packages_Directory: AppPackages
SigningCertificate: GitHubActionsDemo.pfx
Solution_Path: MyWpfApp.sln
Test_Project_Path: MyWpfApp.Tests\MyWpfApp.Tests.csproj
Wpf_Project_Path: MyWpfApp\MyWpfApp.csproj
Wap_Project_Directory: MyWpfApp.Package
Wap_Project_Name: MyWpfApp.Package.wapproj
Actions_Allow_Unsecure_Commands: true # Allows AddPAth and SetEnv commands
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.1.x'
- uses: graalvm/setup-graalvm@v1
with:
version: '22.3.0'
java-version: '19'
components: 'native-image'
# github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Install SBT
uses: olafurpg/setup-scala@v11
with:
sbt-version: '1.8.2'
- name: Compile
run: |
sbt assembly
cd target\scala-2.12
native-image -jar git-mkver-assembly-*.jar --no-fallback
- name: Upload binary
uses: actions/upload-artifact@v2
with:
name: git-mkver
path: target\scala-2.12\git-mkver-*