Skip to content

Commit

Permalink
Have different scripts for every runner
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Jan 23, 2025
1 parent 50196d6 commit 247a6b0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/api-swagger-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ jobs:
fetch-depth: 0
ref: 'refs/tags/${{ needs.check-version.outputs.go-sm-api-version }}'

- name: Install aws-cli
uses: unfor19/install-aws-cli-action@v1
with:
version: 2.22.33
- name: Install aws-cli on linux
run:
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.22.35.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
- name: upload to testnet
run: >
aws s3 sync api/release/openapi/swagger/src
Expand Down
25 changes: 20 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,26 @@ jobs:
run: |
mkdir build-zip
cp ${{ env.OUTNAME }}.zip build-zip
- name: Install aws-cli
if: ${{ !contains(matrix.os, 'self-hosted') }}
uses: unfor19/install-aws-cli-action@v1
with:
version: 2.22.33
- name: Install aws-cli on linux
if: ${{ matrix.os == 'ubuntu-22.04' }}
run:
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.22.35.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
- name: Install aws-cli on linux-arm
if: ${{ matrix.os == 'ubuntu-latest-arm-8-cores' }}
run:
curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64-2.2.35.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
- name: Install aws-cli on mac
if: ${{ matrix.os == 'macos-13' }}
run:
curl "https://awscli.amazonaws.com/AWSCLIV2-2.22.35.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
- name: Install aws-cli on windows
if: ${{ matrix.os == 'windows-2022' }}
run: choco install awscli --version=2.22.35
- name: Upload zip to R2
run: >
aws s3 sync build-zip
Expand Down

0 comments on commit 247a6b0

Please sign in to comment.