Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fips checksums #1

Closed
wants to merge 9 commits into from
Next Next commit
Add checksums github CI action
  • Loading branch information
t8m committed May 11, 2021
commit d07d5110b75134fa5b1e91b85d314a2ade795779
55 changes: 55 additions & 0 deletions .github/workflows/checksums.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
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: master
- 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 }}
- 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']
# })