-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (37 loc) · 1.15 KB
/
windows.yml
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
name: Windows
on:
push:
branches: [ "devel", "testing", "stable", "LTS" ]
paths:
- '*.ps1'
- 'CommonInitScripts/**.ps1'
- 'Windows_10/**.ps1'
- '.github/workflows/windows.yml'
pull_request:
branches: [ "devel", "testing", "stable", "LTS" ]
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["windows-2022", "windows-latest"] # TODO add a newer runner when available
# TODO make this a single runner when windows-latest is the same as windows-2022
steps:
- name: "checkout repo"
uses: actions/checkout@v4
- name: Install winget
uses: Cyberboss/install-winget@v1
- name: "Test `winget` installation"
shell: pwsh
run: winget
- name: "Run `packages_install.ps1` separately (so that it does not pollute logs)"
shell: pwsh
run: .\Windows_10\packages_install.ps1
- name: "Run `run_all.ps1`"
shell: pwsh
run: .\Windows_10\run_all.ps1
- name: Install optional packages
shell: pwsh
run: .\Windows_10\optional_packages_install.ps1
# TODO add idempotence test