fork/team
git clone https://git.julia.blue/fork/team
cde5a40
remove-fuchsia
1name : CI 2 3on : [ push , pull_request ] 4 5jobs : 6ci : 7name : CI 8runs-on : ubuntu-latest 9if : github.repository == 'rust-lang/team' 10permissions : 11id-token : write 12steps : 13 14- uses : actions/checkout@main 15with : 16fetch-depth : 50 17 18- name : Install Rust Stable 19run : | 20rustc -vV 21rustup update stable 22rustup default stable 23rustc -vV 24 25- uses : Swatinem/rust-cache@v2 26 27- name : Build the validation tool 28run : cargo build 29 30- name : Validate the repository contents 31run : cargo run -- check --strict 32env : 33GITHUB_TOKEN : ${{ secrets.github_token }} 34 35- name : Run rustfmt 36run : cargo fmt -- --check 37 38- name : Run tests 39run : cargo test --workspace --all-features 40 41- name : Build the contents of the static API 42run : | 43cargo run -- static-api build 44echo "team-api.infra.rust-lang.org" > build/CNAME 45 46- name : Write PR number into the uploaded archive 47if : ${{ github.event_name == 'pull_request' }} 48run : echo "${{ github.event.pull_request.number }}" > build/pr.txt 49 50- name : Upload the built JSON as a GitHub artifact 51if : ${{ github.event_name == 'pull_request' }} 52uses : actions/upload-artifact@v4 53with : 54name : team-api-output 55path : build 56 57- name : Deploy to GitHub Pages 58run : | 59touch build/.nojekyll 60curl -LsSf https://raw.githubusercontent.com/rust-lang/simpleinfra/master/setup-deploy-keys/src/deploy.rs | rustc - -o /tmp/deploy 61(cd build && /tmp/deploy) 62env : 63GITHUB_DEPLOY_KEY : ${{ secrets.GITHUB_DEPLOY_KEY }} 64if : github.event_name == 'push' && github.ref == 'refs/heads/master' 65 66- name : Configure AWS credentials 67if : github.event_name == 'push' && github.ref == 'refs/heads/master' 68uses : aws-actions/configure-aws-credentials@v1 69with : 70role-to-assume : arn:aws:iam::890664054962:role/ci--rust-lang--team 71aws-region : us-west-1 72 73- name : Start the synchronization tool 74if : github.event_name == 'push' && github.ref == 'refs/heads/master' 75run : | 76 # Introduce some artificial delay to help github pages propagate. 77 sleep 60 78 aws --region us-west-1 lambda invoke --function-name start-sync-team output.json 79 cat output.json | python3 -m json.tool