|
23 | 23 | uses: oracle-actions/setup-java@v1
|
24 | 24 | with:
|
25 | 25 | release: ${{ matrix.java }}
|
26 |
| - - name: Install softhsm2 |
27 |
| - run: sudo apt-get install -y softhsm2 |
28 |
| - - name: Install opensc |
29 |
| - run: sudo apt-get install -y opensc |
30 |
| - - name: Ensure SoftHSM user configuration |
31 |
| - run: impl/src/test/scripts/softhsm configure |
32 |
| - - name: Populate SoftHSM with JJWT test keys |
33 |
| - run: impl/src/test/scripts/softhsm import |
| 26 | + - uses: ./.github/workflows/env-setup.yml |
34 | 27 | - name: Build
|
35 | 28 | # run a full build, just as we would for a release (i.e. the `ossrh` profile), but don't use gpg
|
36 | 29 | # to sign artifacts, since we don't want to mess with storing signing credentials in CI:
|
|
51 | 44 | distribution: 'temurin'
|
52 | 45 | cache: 'maven'
|
53 | 46 | check-latest: true
|
54 |
| - - name: Install softhsm2 |
55 |
| - run: sudo apt-get install -y softhsm2 |
56 |
| - - name: Install opensc |
57 |
| - run: sudo apt-get install -y opensc |
58 |
| - - name: Ensure SoftHSM user configuration |
59 |
| - run: impl/src/test/scripts/softhsm configure |
60 |
| - - name: Populate SoftHSM with JJWT test keys |
61 |
| - run: impl/src/test/scripts/softhsm import |
| 47 | + - uses: ./.github/workflows/env-setup.yml |
62 | 48 | - name: Build
|
63 | 49 | # run a full build, just as we would for a release (i.e. the `ossrh` profile), but don't use gpg
|
64 | 50 | # to sign artifacts, since we don't want to mess with storing signing credentials in CI:
|
|
81 | 67 | distribution: 'zulu'
|
82 | 68 | cache: 'maven'
|
83 | 69 | check-latest: true
|
84 |
| - - name: Install softhsm2 |
85 |
| - run: sudo apt-get install -y softhsm2 |
86 |
| - - name: Install opensc |
87 |
| - run: sudo apt-get install -y opensc |
88 |
| - - name: Ensure SoftHSM user configuration |
89 |
| - run: impl/src/test/scripts/softhsm configure |
90 |
| - - name: Populate SoftHSM with JJWT test keys |
91 |
| - run: impl/src/test/scripts/softhsm import |
| 70 | + - uses: ./.github/workflows/env-setup.yml |
92 | 71 | - name: Build
|
93 | 72 | # run a full build, just as we would for a release (i.e. the `ossrh` profile), but don't use gpg
|
94 | 73 | # to sign artifacts, since we don't want to mess with storing signing credentials in CI:
|
@@ -129,14 +108,7 @@ jobs:
|
129 | 108 | java-version: '8'
|
130 | 109 | cache: 'maven'
|
131 | 110 | check-latest: true
|
132 |
| - - name: Install softhsm2 |
133 |
| - run: sudo apt-get install -y softhsm2 |
134 |
| - - name: Install opensc |
135 |
| - run: sudo apt-get install -y opensc |
136 |
| - - name: Ensure SoftHSM user configuration |
137 |
| - run: impl/src/test/scripts/softhsm configure |
138 |
| - - name: Populate SoftHSM with JJWT test keys |
139 |
| - run: impl/src/test/scripts/softhsm import |
| 111 | + - uses: ./.github/workflows/env-setup.yml |
140 | 112 | - name: Wait to start
|
141 | 113 | # wait a little to start: code coverage usually only takes about 1 1/2 minutes. If coverage fails, it will
|
142 | 114 | # cancel the other running builds, and we don't want that (because we want to see if jobs fail due to
|
|
0 commit comments