Skip to content

Commit 2bf1c5b

Browse files
committed
ci: install pass on windows for testing
Signed-off-by: CrazyMax <[email protected]>
1 parent 5713271 commit 2bf1c5b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,13 @@ jobs:
6969
if: startsWith(matrix.os, 'macOS-')
7070
run: |
7171
brew install pass
72+
-
73+
name: Install deps (windows)
74+
if: startsWith(matrix.os, 'windows-')
75+
run: |
76+
choco install pass4win --no-progress --allow-unofficial
7277
-
7378
name: GPG conf
74-
if: ${{ !startsWith(matrix.os, 'windows-') }}
7579
uses: actions/github-script@v6
7680
id: gpg
7781
with:
@@ -88,14 +92,12 @@ jobs:
8892
core.setOutput('passphrase', fs.readFileSync('.github/workflows/fixtures/7D851EB72D73BDA0.pass', {encoding: 'utf8'}));
8993
-
9094
name: Import GPG key
91-
if: ${{ !startsWith(matrix.os, 'windows-') }}
9295
uses: crazy-max/ghaction-import-gpg@v5
9396
with:
9497
gpg_private_key: ${{ steps.gpg.outputs.key }}
9598
passphrase: ${{ steps.gpg.outputs.passphrase }}
9699
-
97100
name: Init pass
98-
if: ${{ !startsWith(matrix.os, 'windows-') }}
99101
run: |
100102
echo -e "trust\n5\ny" | gpg --batch --no-tty --command-fd 0 --edit-key 7D851EB72D73BDA0
101103
pass init 7D851EB72D73BDA0

0 commit comments

Comments
 (0)