Skip to content

Commit

Permalink
[ci] Install aws-cli on ubuntu runners
Browse files Browse the repository at this point in the history
  • Loading branch information
danthe3rd authored and danthe3rd committed Oct 13, 2023
1 parent ced8681 commit 7e5d889
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/s3_win2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This is a basic workflow to help you get started with Actions
name: Connect to an AWS role from a GitHub repository

# Controls when the action will run. Invokes the workflow on push events but only for the main branch
on:
pull_request: {}

env:

AWS_REGION : "us-east-1"

# Permission can be added at job level or workflow level
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
AssumeRoleAndCallIdentity:
# runs-on: windows-2019
runs-on: 4-core-ubuntu
container: quay.io/pypa/manylinux2014_x86_64
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- run: |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v1.7.0
with:
role-to-assume: arn:aws:iam::749337293305:role/pytorch_bot_uploader_role
role-session-name: GitHub_to_AWS_via_FederatedOIDC
aws-region: ${{ env.AWS_REGION }}
# Hello from AWS: WhoAmI
- name: Sts GetCallerIdentity
run: |
pip install aws
aws sts get-caller-identity
echo "Running LS"
aws s3 ls s3://pytorch/whl/xformers/ || echo "Folder does not exist"
2 changes: 0 additions & 2 deletions packaging/compute_wheel_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
from pathlib import Path
from typing import Optional

from packaging import version

# TODO: consolidate with the code in build_conda.py
THIS_PATH = Path(__file__).resolve()
version_from_file = (THIS_PATH.parents[1] / "version.txt").read_text().strip()
Expand Down

0 comments on commit 7e5d889

Please sign in to comment.