Skip to content

Commit d63fca2

Browse files
committed
individual scripts
1 parent c266e4a commit d63fca2

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

.github/scripts/install-deps.sh renamed to .github/scripts/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@ sudo bash cmake-3.15.6-Linux-x86_64.sh --skip-license --prefix=/usr/local
1717

1818
# Generate keypair for attestation
1919
openssl genrsa -out ./private_key.pem -3 3072
20+
21+
source opaqueenv
22+
source /opt/openenclave/share/openenclave/openenclaverc
23+
export MODE=SIMULATE
24+
25+
build/sbt package

.github/scripts/test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source opaqueenv
2+
source /opt/openenclave/share/openenclave/openenclaverc
3+
export MODE=SIMULATE
4+
5+
build/sbt test

.github/workflows/main.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ jobs:
2626
java-version: '8'
2727
# Run the test
2828
- name: Install dependencies, set environment variables, and build the package
29-
run: |
30-
./.github/scripts/install-deps.sh
31-
./.github/scripts/setup-env.sh
32-
./build/sbt package
29+
run: ./github/scripts/build.sh
30+
shell: bash
3331

3432
test:
3533
runs-on: ubuntu-18.04
@@ -41,6 +39,5 @@ jobs:
4139
with:
4240
java-version: '8'
4341
- name: Run sbt tests
44-
run: |
45-
./.github/scripts/setup-env.sh
46-
./build/sbt test
42+
run: ./github/scripts/test.sh
43+
shell: bash

0 commit comments

Comments
 (0)