summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-05-11 17:06:57 +0200
committerTomas Mraz <tomas@openssl.org>2021-05-13 10:24:33 +0200
commitb17e79929819be3093fda576a4b8566c7fc7df70 (patch)
tree7d60f67df94e14ce71ba68f3c5dc5d9f578bdf20 /.github/workflows
parent8e782e8b4f8da79713d67446ac179e87201f2a5a (diff)
Add checksums github CI action
Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15229)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/checksums.yml56
1 files changed, 56 insertions, 0 deletions
diff --git a/.github/workflows/checksums.yml b/.github/workflows/checksums.yml
new file mode 100644
index 0000000000..d22e38a5e9
--- /dev/null
+++ b/.github/workflows/checksums.yml
@@ -0,0 +1,56 @@
+name: FIPS Checksums
+on: [pull_request]
+jobs:
+ apply-label:
+ runs-on: ubuntu-latest
+ steps:
+ - name: install unifdef
+ run: |
+ sudo apt-get update
+ sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install unifdef
+ - uses: actions/checkout@v2
+ with:
+ ref: ${{ github.event.pull_request.base.sha }}
+ - name: create build dirs
+ run: |
+ mkdir ./build-pristine
+ mkdir ./build
+ - name: config pristine
+ run: ../config enable-fips && perl configdata.pm --dump
+ working-directory: ./build-pristine
+ - name: make build_generated pristine
+ run: make -s build_generated
+ working-directory: ./build-pristine
+ - name: make fips-checksums pristine
+ run: make fips-checksums
+ working-directory: ./build-pristine
+ - uses: actions/checkout@v2
+ with:
+ ref: ${{ github.event.pull_request.head.sha }}
+ clean: false
+ - name: config
+ run: ../config enable-fips && perl configdata.pm --dump
+ working-directory: ./build
+ - name: make build_generated
+ run: make -s build_generated
+ working-directory: ./build
+ - name: make fips-checksums
+ run: make fips-checksums
+ working-directory: ./build
+ - name: update checksums pristine
+ run: make update-fips-checksums
+ working-directory: ./build-pristine
+ - name: make diff-fips-checksums
+ run: make diff-fips-checksums
+ working-directory: ./build
+
+# - uses: actions/github-script@v4
+# with:
+# github-token: ${{secrets.GITHUB_TOKEN}}
+# script: |
+# github.issues.addLabels({
+# issue_number: context.issue.number,
+# owner: context.repo.owner,
+# repo: context.repo.repo,
+# labels: ['Triage']
+# })