From 45e120750ec024947dfecba738a5103d1afcfd5d Mon Sep 17 00:00:00 2001 From: Pheenoh Date: Sun, 4 Feb 2024 09:34:20 -0700 Subject: [PATCH] update github actions --- .github/workflows/clang-format-check.yml | 9 +++++---- .github/workflows/gcn-ntscj.yml | 2 +- .github/workflows/gcn-ntscu.yml | 2 +- .github/workflows/gcn-pal.yml | 2 +- .github/workflows/tpgz-release.yml | 18 +++++++++--------- .github/workflows/wii-ntscj.yml | 2 +- .github/workflows/wii-ntscu10.yml | 2 +- .github/workflows/wii-ntscu12.yml | 2 +- .github/workflows/wii-pal.yml | 2 +- 9 files changed, 21 insertions(+), 20 deletions(-) diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml index ce8192f4..3ee26502 100644 --- a/.github/workflows/clang-format-check.yml +++ b/.github/workflows/clang-format-check.yml @@ -7,9 +7,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install clang-format - run: sudo apt-get install clang-format-10 + run: | + sudo apt-get update + sudo apt-get install clang-format-10 - name: Run clang-format-check - run: sh external/misc/clang-format-check.sh - \ No newline at end of file + run: sh external/misc/clang-format-check.sh \ No newline at end of file diff --git a/.github/workflows/gcn-ntscj.yml b/.github/workflows/gcn-ntscj.yml index b6a8ac54..dbfb4a0d 100644 --- a/.github/workflows/gcn-ntscj.yml +++ b/.github/workflows/gcn-ntscj.yml @@ -12,7 +12,7 @@ jobs: options: --shm-size=128m --ulimit core=-1 --privileged=true steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 with: token: ${{secrets.MY_REPO_PAT}} submodules: recursive diff --git a/.github/workflows/gcn-ntscu.yml b/.github/workflows/gcn-ntscu.yml index f4cb9fe7..56ea32ff 100644 --- a/.github/workflows/gcn-ntscu.yml +++ b/.github/workflows/gcn-ntscu.yml @@ -12,7 +12,7 @@ jobs: options: --shm-size=128m --ulimit core=-1 --privileged=true steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 with: token: ${{secrets.MY_REPO_PAT}} submodules: recursive diff --git a/.github/workflows/gcn-pal.yml b/.github/workflows/gcn-pal.yml index 6b023b19..38a92565 100644 --- a/.github/workflows/gcn-pal.yml +++ b/.github/workflows/gcn-pal.yml @@ -12,7 +12,7 @@ jobs: options: --shm-size=128m --ulimit core=-1 --privileged=true steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 with: token: ${{secrets.MY_REPO_PAT}} submodules: recursive diff --git a/.github/workflows/tpgz-release.yml b/.github/workflows/tpgz-release.yml index 2b0c666e..07a04bce 100644 --- a/.github/workflows/tpgz-release.yml +++ b/.github/workflows/tpgz-release.yml @@ -11,13 +11,13 @@ jobs: steps: - name: Download latest release patches run: curl -s https://api.github.com/repos/zsrtp/tpgz/releases/latest | grep "http.*patch" | cut -d ":" -f 2,3 | tr -d \ \" | wget -qi - --directory-prefix patches/ - - uses: jakejarvis/s3-sync-action@master + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v2 with: - args: --acl public-read --follow-symlinks - env: - AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_REGION: 'us-east-2' - SOURCE_DIR: 'patches/' - DEST_DIR: 'patches/' + role-to-assume: ${{ secrets.AWS_ROLE_ARN }} + aws-region: ${{ secrets.AWS_REGION }} + role-duration-seconds: 1200 + role-session-name: GitHubActions + - name: Sync directory to S3 + run: | + aws s3 sync build/ s3://${{ secrets.AWS_S3_BUCKET }}/ --delete --acl public-read diff --git a/.github/workflows/wii-ntscj.yml b/.github/workflows/wii-ntscj.yml index 74be7563..cd511cb7 100644 --- a/.github/workflows/wii-ntscj.yml +++ b/.github/workflows/wii-ntscj.yml @@ -12,7 +12,7 @@ jobs: options: --shm-size=128m --ulimit core=-1 --privileged=true steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 with: token: ${{secrets.MY_REPO_PAT}} submodules: recursive diff --git a/.github/workflows/wii-ntscu10.yml b/.github/workflows/wii-ntscu10.yml index 5307f25a..9f58dd1a 100644 --- a/.github/workflows/wii-ntscu10.yml +++ b/.github/workflows/wii-ntscu10.yml @@ -12,7 +12,7 @@ jobs: options: --shm-size=128m --ulimit core=-1 --privileged=true steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 with: token: ${{secrets.MY_REPO_PAT}} submodules: recursive diff --git a/.github/workflows/wii-ntscu12.yml b/.github/workflows/wii-ntscu12.yml index 48404ad5..3903e4ee 100644 --- a/.github/workflows/wii-ntscu12.yml +++ b/.github/workflows/wii-ntscu12.yml @@ -12,7 +12,7 @@ jobs: options: --shm-size=128m --ulimit core=-1 --privileged=true steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 with: token: ${{secrets.MY_REPO_PAT}} submodules: recursive diff --git a/.github/workflows/wii-pal.yml b/.github/workflows/wii-pal.yml index 723081b2..74914750 100644 --- a/.github/workflows/wii-pal.yml +++ b/.github/workflows/wii-pal.yml @@ -12,7 +12,7 @@ jobs: options: --shm-size=128m --ulimit core=-1 --privileged=true steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 with: token: ${{secrets.MY_REPO_PAT}} submodules: recursive