Skip to content

Commit

Permalink
chore: cleanup package workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps committed Dec 25, 2023
1 parent 030fbf4 commit 38c99ec
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/package-sdks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,6 @@ jobs:
check-latest: true
cache: true

- name: Download event.json
uses: actions/download-artifact@v2
if: github.event_name == 'workflow_run'
with:
name: event.json

- name: Get Engine Tag
id: get_engine_tag
run: |
if [ -f event.json ]; then
echo "engine-tag=$(jq -r '.release.tag_name' event.json)" >> $GITHUB_OUTPUT
else
echo "engine-tag=${{ github.event.inputs.engine-tag }}" >> $GITHUB_OUTPUT
fi
- name: Install Dagger
run: |
cd /usr/local
Expand All @@ -53,23 +38,23 @@ jobs:
- name: Download Mac ARM64 Engine
run: |
mkdir -p tmp/darwin_arm64 && \
wget https://github.com/flipt-io/flipt-client-sdks/releases/download/flipt-engine-${{ steps.get_engine_tag.outputs.engine-tag }}/flipt-engine-Darwin-arm64.tar.gz -O /tmp/flipt-engine-Darwin-arm64.tar.gz && \
wget https://github.com/flipt-io/flipt-client-sdks/releases/download/flipt-engine-${{ github.event.inputs.engine-tag }}/flipt-engine-Darwin-arm64.tar.gz -O /tmp/flipt-engine-Darwin-arm64.tar.gz && \
mkdir -p /tmp/darwin_arm64 && \
tar -xzf /tmp/flipt-engine-Darwin-arm64.tar.gz -C /tmp/darwin_arm64 && \
mv /tmp/darwin_arm64/target/aarch64-apple-darwin/release/* tmp/darwin_arm64
- name: Download Linux ARM64 Engine
run: |
mkdir -p tmp/linux_arm64 && \
wget https://github.com/flipt-io/flipt-client-sdks/releases/download/flipt-engine-${{ steps.get_engine_tag.outputs.engine-tag }}/flipt-engine-Linux-arm64.tar.gz -O /tmp/flipt-engine-Linux-arm64.tar.gz && \
wget https://github.com/flipt-io/flipt-client-sdks/releases/download/flipt-engine-${{ github.event.inputs.engine-tag }}/flipt-engine-Linux-arm64.tar.gz -O /tmp/flipt-engine-Linux-arm64.tar.gz && \
mkdir -p /tmp/linux_arm64 && \
tar -xzf /tmp/flipt-engine-Linux-arm64.tar.gz -C /tmp/linux_arm64 && \
mv /tmp/linux_arm64/target/aarch64-unknown-linux-gnu/release/* tmp/linux_arm64
- name: Download Linux x86_64 Engine
run: |
mkdir -p tmp/linux_x86_64 && \
wget https://github.com/flipt-io/flipt-client-sdks/releases/download/flipt-engine-${{ steps.get_engine_tag.outputs.engine-tag }}/flipt-engine-Linux-x86_64.tar.gz -O /tmp/flipt-engine-Linux-x86_64.tar.gz && \
wget https://github.com/flipt-io/flipt-client-sdks/releases/download/flipt-engine-${{ github.event.inputs.engine-tag }}/flipt-engine-Linux-x86_64.tar.gz -O /tmp/flipt-engine-Linux-x86_64.tar.gz && \
mkdir -p /tmp/linux_x86_64 && \
tar -xzf /tmp/flipt-engine-Linux-x86_64.tar.gz -C /tmp/linux_x86_64 && \
mv /tmp/linux_x86_64/target/x86_64-unknown-linux-gnu/release/* tmp/linux_x86_64
Expand Down

0 comments on commit 38c99ec

Please sign in to comment.