Fix append_ia5 function to not assume NUL terminated strings
[openssl.git] / .github / workflows / fips-checksums.yml
1 name: FIPS Checksums
2 on: [pull_request]
3
4 jobs:
5   compute-checksums:
6     runs-on: ubuntu-latest
7     steps:
8       - name: install unifdef
9         run: |
10             sudo apt-get update
11             sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install unifdef
12       - name: create build dirs
13         run: |
14           mkdir ./build-pristine
15           mkdir ./source-pristine
16           mkdir ./build
17           mkdir ./source
18           mkdir ./artifact
19       - uses: actions/checkout@v2
20         with:
21           repository: ${{ github.event.pull_request.base.repo.full_name }}
22           ref: ${{ github.event.pull_request.base.ref }}
23           path: source-pristine
24       - name: config pristine
25         run: ../source-pristine/config enable-fips
26         working-directory: ./build-pristine
27       - name: config pristine dump
28         run: ./configdata.pm --dump
29         working-directory: ./build-pristine
30       - name: make build_generated pristine
31         run: make -s build_generated
32         working-directory: ./build-pristine
33       - name: make fips-checksums pristine
34         run: make fips-checksums
35         working-directory: ./build-pristine
36       - uses: actions/checkout@v2
37         with:
38           path: source
39       - name: config
40         run: ../source/config enable-fips
41         working-directory: ./build
42       - name: config dump
43         run: ./configdata.pm --dump
44         working-directory: ./build
45       - name: make build_generated
46         run: make -s build_generated
47         working-directory: ./build
48       - name: make fips-checksums
49         run: make fips-checksums
50         working-directory: ./build
51       - name: update checksums
52         run: |
53           cp -a build-pristine/providers/fips.module.sources.new source/providers/fips.module.sources
54           cp -a build-pristine/providers/fips-sources.checksums.new source/providers/fips-sources.checksums
55           cp -a build-pristine/providers/fips.checksum.new source/providers/fips.checksum
56       - name: make diff-fips-checksums
57         run: make diff-fips-checksums && touch ../artifact/fips_unchanged || ( touch ../artifact/fips_changed ; echo FIPS CHANGED )
58         working-directory: ./build
59       - name: save PR number
60         run: echo ${{ github.event.number }} > ./artifact/pr_num
61       - name: save artifact
62         uses: actions/upload-artifact@v2
63         with:
64           name: fips_checksum
65           path: artifact/