Skip to content

Commit 5320c7a

Browse files
committed
Duplicate reproducible workflow to avoid one job being cancelled by the other.
1 parent 62b8360 commit 5320c7a

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

.github/workflows/reproducible.yml .github/workflows/reproducible-macos.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Check that binaries are reproducible
2+
name: Check that binaries are reproducible (MacOS)
33
on:
44
push:
55
pull_request:
@@ -9,7 +9,7 @@ jobs:
99
check_hashes:
1010
strategy:
1111
matrix:
12-
os: [ubuntu-18.04, macos-10.15]
12+
os: [macos-10.15]
1313
runs-on: ${{ matrix.os }}
1414
steps:
1515
- uses: actions/checkout@v2
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: Check that binaries are reproducible (Ubuntu)
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
8+
jobs:
9+
check_hashes:
10+
strategy:
11+
matrix:
12+
os: [ubuntu-18.04]
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions-rs/toolchain@v1
17+
with:
18+
target: thumbv7em-none-eabi
19+
- uses: actions/setup-python@v1
20+
with:
21+
python-version: 3.7
22+
- name: Install Python dependencies
23+
run: python -m pip install --upgrade pip setuptools wheel
24+
- name: Set up OpenSK
25+
run: ./setup.sh
26+
27+
- name: Use sample cryptographic material
28+
run: rm -R crypto_data/ && cp -r reproducible/sample_crypto_data crypto_data
29+
- name: Computing cryptographic hashes
30+
run: ./reproduce_hashes.sh
31+
32+
- name: Upload reproduced binaries
33+
uses: actions/upload-artifact@v1
34+
with:
35+
name: reproduced-${{ matrix.os }}
36+
path: reproducible/reproduced.tar
37+
38+
- name: Comparing cryptographic hashes
39+
run: git diff --no-index reproducible/reference_binaries_${{ matrix.os }}.sha256sum reproducible/binaries.sha256sum

0 commit comments

Comments
 (0)