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