-
Notifications
You must be signed in to change notification settings - Fork 3
67 lines (55 loc) · 1.72 KB
/
powershell-module.yml
File metadata and controls
67 lines (55 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: powershell-module
on:
push:
pull_request:
permissions:
contents: read
jobs:
build_and_test:
name: Build PowerShell module (${{ matrix.name }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: linux-x64
os: ubuntu-latest
- name: windows-x64
os: windows-2022
- name: macos-arm64
os: macos-14
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Rust stable
shell: pwsh
run: |
rustup toolchain install stable --profile minimal
rustup default stable
- name: Setup .NET 8
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x
- name: Cache cargo artifacts
uses: Swatinem/rust-cache@v2.9.1
- name: Build psign portable shared library and PowerShell module
shell: pwsh
run: ./PowerShell/build.ps1 -Configuration Release
- name: Run PowerShell module end-to-end tests
shell: pwsh
run: ./PowerShell/tests/Invoke-PortableSignatureTests.ps1 -Configuration Release
- name: Package PowerShell module for current RID
shell: pwsh
run: ./PowerShell/package.ps1 -Configuration Release
- name: Upload staged module
uses: actions/upload-artifact@v7
with:
name: Devolutions.Psign-${{ matrix.name }}
path: PowerShell/Devolutions.Psign
if-no-files-found: error
- name: Upload module package
uses: actions/upload-artifact@v7
with:
name: Devolutions.Psign-package-${{ matrix.name }}
path: artifacts/powershell/*.nupkg
if-no-files-found: error