Skip to content

Commit 286e6aa

Browse files
committed
split up script
1 parent c3282d8 commit 286e6aa

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,3 @@ 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-
# Set up environment variables
22-
source opaqueenv
23-
source /opt/openenclave/share/openenclave/openenclaverc
24-
export MODE=SIMULATE
25-
26-
# Build package
27-
./build/sbt package

.github/scripts/setup-env.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
source opaqueenv
2+
source /opt/openenclave/share/openenclave/openenclaverc

.github/workflows/main.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,23 @@ jobs:
2424
- uses: actions/setup-java@v1
2525
with:
2626
java-version: '8'
27-
# Run the build script
27+
# Run the test
2828
- name: Install dependencies, set environment variables, and build the package
29-
run: ./.github/scripts/build.sh
30-
shell: bash
29+
run: |
30+
./.github/scripts/install-deps.sh
31+
./.github/scripts/setup-env.sh
32+
./build/sbt package
3133
3234
test:
3335
runs-on: ubuntu-18.04
34-
# Specify that the build job is a prerequisite
36+
# Build job is a prerequisite
3537
needs: build
3638
steps:
3739
- uses: actions/checkout@v2
3840
- uses: actions/setup-java@v1
3941
with:
4042
java-version: '8'
41-
# Run sbt tests
42-
- name: Run tests
43-
run: ./build/sbt test
44-
43+
- name: Run sbt tests
44+
run: |
45+
./.github/scripts/setup-env.sh
46+
./build/sbt test

0 commit comments

Comments
 (0)