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

Add PyInstaller Build Pipeline with Github Actions #11

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build cvm-attestation with PyInstaller
run-name: Build cvm-attestation with PyInstaller 🚀
on: [push]
jobs:
Build-On-Windows:
runs-on: windows-2022
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build
shell: pwsh
run: |
cd ${{ github.workspace }}\cvm-attestation
.\install.ps1
pip install pyinstaller
pyinstaller .\attest.py
cp ${{ github.workspace }}\cvm-attestation\*.json ${{ github.workspace }}\cvm-attestation\dist\attest\
- uses: actions/upload-artifact@v4
with:
name: attest-win
path: ${{ github.workspace }}\cvm-attestation\dist\attest\*

Build-On-Linux:
runs-on: ubuntu-22.04
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build
shell: bash
run: |
cd ${{ github.workspace }}/cvm-attestation
./install.sh
sudo pip install pyinstaller
sudo pyinstaller ./attest.py
sudo cp ${{ github.workspace }}/cvm-attestation/*.json ${{ github.workspace }}/cvm-attestation/dist/attest/
- uses: actions/upload-artifact@v4
with:
name: attest-lin
path: ${{ github.workspace }}/cvm-attestation/dist/attest/*