Skip to content

Commit

Permalink
Update snap.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dthomasngrokker committed Jan 24, 2025
1 parent 2013e15 commit d714afb
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/snap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,11 @@ jobs:
uses: actions/checkout@v2

- name: Set up Snapcraft
run: sudo snap install --channel stable --classic snapcraft

- name: Extract Equinox Links
id: extract-links
run: |
EQUINOX_LINK=$(grep -oP 'source: \K.*' snapcraft.yaml | grep ${{ matrix.architecture }})
ZIP_FILE_NAME=$(basename "${EQUINOX_LINK}" .zip)
echo "EQUINOX_LINK=${EQUINOX_LINK}" >> $GITHUB_ENV
echo "ZIP_FILE_NAME=${ZIP_FILE_NAME}" >> $GITHUB_ENV
- name: Download Equinox Artifact
run: |
curl -L -o ${ZIP_FILE_NAME}.zip ${{ env.EQUINOX_LINK }}
unzip ${ZIP_FILE_NAME}.zip -d equinox-artifact-${{ matrix.architecture }}
echo "UNZIPPED_DIR=equinox-artifact-${{ matrix.architecture }}" >> $GITHUB_ENV
run: sudo snap install --channel stable snapcraft --classic

- name: Build the snap # Build the snap for the specified architecture in the matrix strategy above and save the snap file path to an output
id: build-snap
run: |
cd ${{ env.UNZIPPED_DIR }}
snapcraft --target-arch=${{ matrix.architecture }}
echo "snap=${{ matrix.architecture }}.snap" >> $GITHUB_ENV
Expand Down

0 comments on commit d714afb

Please sign in to comment.