Skip to content

Commit

Permalink
CI: Use AWS CLI configure, Create a minimal Dependabot setting (#254)
Browse files Browse the repository at this point in the history
* gh-actions: use aws-actions/configure-aws-credentials@v4

* Create dependabot.yml
  • Loading branch information
luncliff authored Sep 11, 2024
1 parent c2abfa9 commit 74b8621
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# https://docs.github.com/en/code-security/dependabot
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
labels:
- "ci: GitHub Actions"
10 changes: 6 additions & 4 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
with:
xcode-select-version: "15.2"

- uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2

- uses: actions/[email protected]
with:
key: "v2432-${{ runner.os }}-${{ matrix.vcpkg_tag }}"
Expand All @@ -62,8 +68,6 @@ jobs:
VCPKG_DEFAULT_TRIPLET: "x64-osx"
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }}
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- uses: lukka/[email protected]
name: "Run vcpkg(arm64-osx)"
Expand All @@ -78,5 +82,3 @@ jobs:
VCPKG_DEFAULT_TRIPLET: "arm64-osx"
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }}
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
10 changes: 6 additions & 4 deletions .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
with:
apt: nuget nasm libnuma-dev libopenmpi-dev libx11-dev libxi-dev libxext-dev libx11-xcb-dev

- uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2

- uses: actions/[email protected]
with:
key: "v2432-${{ runner.os }}-${{ matrix.vcpkg_tag }}"
Expand All @@ -58,8 +64,6 @@ jobs:
VCPKG_DEFAULT_TRIPLET: "x64-linux"
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }}
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- uses: lukka/[email protected]
name: "Run vcpkg(arm64-linux)" # It's for future works. Not ready yet...
Expand All @@ -75,5 +79,3 @@ jobs:
VCPKG_DEFAULT_TRIPLET: "arm64-linux"
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }}
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
8 changes: 6 additions & 2 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
with:
msbuild-architecture: x64

- uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2

- name: "Enalbe LongPath"
run: git config --system core.longpaths true

Expand Down Expand Up @@ -61,5 +67,3 @@ jobs:
VCPKG_DEFAULT_TRIPLET: "x64-windows"
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }}
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit 74b8621

Please sign in to comment.