Skip to content

Commit

Permalink
build: Create base GHA CI workflow, stop azure for now
Browse files Browse the repository at this point in the history
  • Loading branch information
qdot committed Jul 22, 2023
1 parent 2b1a8f5 commit 9cd5f77
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 11 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yaml
@@ -0,0 +1,32 @@
name: dotnet package

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '6.0.x' ]

steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore signing pfx
id: create-pfx
shell: pwsh
env:
PFX_CONTENT: ${{ secrets.NPLABS_WINDOWS_20210514_SIGNING_CERT }}
run: |
$pfxPath = Join-Path -Path $env:RUNNER_TEMP -ChildPath "cert.pfx";
$encodedBytes = [System.Convert]::FromBase64String($env:PFX_CONTENT);
Set-Content $pfxPath -Value $encodedBytes -AsByteStream;
Write-Output "::set-output name=PFX_PATH::$pfxPath";
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
22 changes: 11 additions & 11 deletions azure-pipelines.yml
@@ -1,14 +1,14 @@
trigger:
branches:
include:
- master
- dev

pr:
branches:
include:
- master
- dev
#trigger:
# branches:
# include:
# - master
# - dev
#
#pr:
# branches:
# include:
# - master
# - dev

variables:
solution: 'Buttplug.sln'
Expand Down

0 comments on commit 9cd5f77

Please sign in to comment.