Skip to content

Commit

Permalink
Build on main push (#11)
Browse files Browse the repository at this point in the history
Try new workflow to publish binaries.
  • Loading branch information
wawrzek authored Jul 12, 2024
1 parent 52b77b6 commit ae05f9b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 12 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/build.yml → .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Build
name: Build for PR

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

Expand All @@ -20,14 +18,6 @@ jobs:
- name: Build
run: ./build.sh

- name: Service and enclave artifacts
uses: actions/upload-artifact@v4
with:
name: glove-service
path: |
target/release/service
target/release/glove.eif
- name: Enclave measurement artifact
uses: actions/upload-artifact@v4
with:
Expand Down
28 changes: 27 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,34 @@ env:
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Add software to the releases page
- name: Checkout repository
uses: actions/checkout@v4

- name: Build
run: ./build.sh

- name: Service and enclave artifacts
uses: actions/upload-artifact@v4
with:
name: glove-service
path: |
target/release/service
target/release/glove.eif
- name: Enclave measurement artifact
uses: actions/upload-artifact@v4
with:
name: enclave_measurement
path: target/release/enclave_measurement.txt

- name: Adding measurement to summary
run: |
echo '### Enclave Image Measurement' >> $GITHUB_STEP_SUMMARY
cat target/release/enclave_measurement.txt >> $GITHUB_STEP_SUMMARY
- name: Make release
uses: softprops/action-gh-release@v2
with:
files: |
Expand Down

0 comments on commit ae05f9b

Please sign in to comment.