Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
khensunny committed Sep 30, 2024
0 parents commit 01a1bea
Show file tree
Hide file tree
Showing 26 changed files with 1,018 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

strategy:
matrix:
platform: [x64, ARM64]

runs-on: windows-latest

steps:

- uses: actions/checkout@v4

- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore /p:Platform=${{ matrix.platform }}

- name: Test
if: ${{matrix.platform == 'x64'}}
run: dotnet test --no-build --verbosity normal /p:Platform=${{ matrix.platform }}

- name: Get short commit sha
run: echo "SHORT_SHA=$($env:GITHUB_SHA.Substring(0, 7))" >> $env:GITHUB_ENV

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-${{ matrix.platform }}-${{ env.SHORT_SHA }}
path: |
Community.PowerToys.Run.Plugin.RiderProjects/bin
if-no-files-found: error
overwrite: true
Loading

0 comments on commit 01a1bea

Please sign in to comment.