Skip to content

Commit 8e2bc7b

Browse files
committed
a
1 parent 8430494 commit 8e2bc7b

3 files changed

Lines changed: 21 additions & 17 deletions

File tree

.github/test.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
./eactest.com
2+
./cvc-create.com --help
3+
./cvc-print.com --help

.github/test.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
# CI script to test on unix like systems
4+
5+
set -ex -o xtrace
6+
7+
chmod +x *.com
8+
./eactest.com
9+
openssl ecparam -out ZZATCVCA00001.pem -name prime192v1 -genkey -param_enc explicit
10+
openssl pkcs8 -topk8 -nocrypt -in ZZATCVCA00001.pem -outform DER -out ZZATCVCA00001.pkcs8
11+
./cvc-create.com --role=cvca --type=at --chr=ZZATCVCA00001 --expires=991231 --sign-with=ZZATCVCA00001.pkcs8 --scheme=ECDSA_SHA_256 --rid
12+
./cvc-print.com --cvc=ZZATCVCA00001.cvcert

.github/workflows/ape.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,33 +35,22 @@ jobs:
3535
runs-on: ubuntu-24.04
3636
needs: build
3737
steps:
38+
- uses: actions/checkout@v4
3839
- uses: actions/download-artifact@v5
39-
- run: chmod +x *.com
40-
- run: ./eactest.com
41-
- run: openssl ecparam -out ZZATCVCA00001.pem -name prime192v1 -genkey -param_enc explicit
42-
- run: openssl pkcs8 -topk8 -nocrypt -in ZZATCVCA00001.pem -outform DER -out ZZATCVCA00001.pkcs8
43-
- run: ./cvc-create.com --role=cvca --type=at --chr=ZZATCVCA00001 --expires=`date --date="next year" "+%^y%^m%^d"` --sign-with=ZZATCVCA00001.pkcs8 --scheme=ECDSA_SHA_256 --rid
44-
- run: find .
45-
- run: ./cvc-print.com --help
40+
- run: .github/test.sh
4641

4742
test-macos:
4843
runs-on: macos-14
4944
needs: build
5045
steps:
46+
- uses: actions/checkout@v4
5147
- uses: actions/download-artifact@v5
52-
- run: chmod +x *.com
53-
- run: ./eactest.com
54-
- run: openssl ecparam -out ZZATCVCA00001.pem -name prime192v1 -genkey -param_enc explicit
55-
- run: openssl pkcs8 -topk8 -nocrypt -in ZZATCVCA00001.pem -outform DER -out ZZATCVCA00001.pkcs8
56-
- run: ./cvc-create.com --role=cvca --type=at --chr=ZZATCVCA00001 --expires=`date --date="next year" "+%^y%^m%^d"` --sign-with=ZZATCVCA00001.pkcs8 --scheme=ECDSA_SHA_256 --rid
57-
- run: find .
58-
- run: ./cvc-print.com --help
48+
- run: .github/test.sh
5949

6050
test-windows:
6151
runs-on: windows-2025
6252
needs: build
6353
steps:
54+
- uses: actions/checkout@v4
6455
- uses: actions/download-artifact@v5
65-
- run: ./eactest.com
66-
- run: ./cvc-create.com --help
67-
- run: ./cvc-print.com --help
56+
- run: .github/test.bat

0 commit comments

Comments
 (0)