Bump actions and use a matrix
This commit is contained in:
16
.github/workflows/build-lists.yml
vendored
16
.github/workflows/build-lists.yml
vendored
@ -16,11 +16,15 @@ jobs:
|
|||||||
environment:
|
environment:
|
||||||
name: sudo-bot
|
name: sudo-bot
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
type: ["stretchoid", "binaryedge"]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Cache cargo binaries
|
- name: Cache cargo binaries
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
id: cache-dns-ptr-resolver
|
id: cache-dns-ptr-resolver
|
||||||
with:
|
with:
|
||||||
path: ~/.cargo/bin/dns-ptr-resolver
|
path: ~/.cargo/bin/dns-ptr-resolver
|
||||||
@ -35,10 +39,8 @@ jobs:
|
|||||||
- name: Install dns-ptr-resolver
|
- name: Install dns-ptr-resolver
|
||||||
if: steps.cache-dns-ptr-resolver.outputs.cache-hit != 'true'
|
if: steps.cache-dns-ptr-resolver.outputs.cache-hit != 'true'
|
||||||
run: cargo install dns-ptr-resolver@1.1.0
|
run: cargo install dns-ptr-resolver@1.1.0
|
||||||
- name: Build the binaryedge list
|
- name: Build the ${{ matrix.type }} list
|
||||||
run: ./make-binaryedge.sh
|
run: ./make-${{ matrix.type }}.sh
|
||||||
- name: Build the stretchoid list
|
|
||||||
run: ./make-stretchoid.sh
|
|
||||||
- name: Post the summary
|
- name: Post the summary
|
||||||
run: |
|
run: |
|
||||||
git add -A
|
git add -A
|
||||||
@ -47,14 +49,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
printf '%s' "${{ secrets.GH_APP_JWT_PRIV_PEM_CONTENTS }}" > ${HOME}/.secret_jwt.pem
|
printf '%s' "${{ secrets.GH_APP_JWT_PRIV_PEM_CONTENTS }}" > ${HOME}/.secret_jwt.pem
|
||||||
printf '%s' "${{ secrets.GPG_PRIVATE_KEY }}" > ${HOME}/.private-key.asc
|
printf '%s' "${{ secrets.GPG_PRIVATE_KEY }}" > ${HOME}/.private-key.asc
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
- name: Get yarn cache directory path
|
- name: Get yarn cache directory path
|
||||||
id: yarn-cache-dir-path
|
id: yarn-cache-dir-path
|
||||||
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
|
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
|
||||||
- name: yarn cache
|
- name: yarn cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
Reference in New Issue
Block a user