From 7925c65a7e721541ca16fde835f4b7a206300586 Mon Sep 17 00:00:00 2001 From: Antonio Date: Tue, 5 Mar 2024 11:49:26 -0500 Subject: [PATCH] Update build-linux.yml --- .github/workflows/build-linux.yml | 45 ++++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index cdab35ac..317cfad6 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -8,8 +8,8 @@ permissions: contents: write jobs: - build: - name: Build + build-with-binary: + name: Build with Binary runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 @@ -45,5 +45,44 @@ jobs: with: upload_url: ${{ steps.get_release.outputs.upload_url }} asset_path: alexa-actions-linux.zip - asset_name: AlexaActionsLinux.zip + asset_name: AlexaActionsWithBinaryLinux.zip + asset_content_type: application/zip + build-no-binary: + name: Build no Binary + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Get release + id: get_release + uses: bruceadams/get-release@v1.3.2 + env: + GITHUB_TOKEN: ${{ github.token }} + - name: Set up Python 3.11 + uses: actions/setup-python@v2 + with: + python-version: 3.11 + + - name: Install dependencies + run: | + sudo apt update + sudo apt install zip gzip tar + + - name: Install Python dependencies + run: python -m pip install --upgrade pip + + - name: Install requirements to lambda folder + run: "pip install --no-binary :all: --no-deps -r lambda/requirements.txt -t lambda/" + + - name: Zip Lambda fodler + run: zip -r alexa-actions-linux.zip lambda + + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.get_release.outputs.upload_url }} + asset_path: alexa-actions-linux.zip + asset_name: AlexaActionsNoBinaryLinux.zip asset_content_type: application/zip