Skip to content

Bump dependabot/fetch-metadata from 2 to 3 #7470

Bump dependabot/fetch-metadata from 2 to 3

Bump dependabot/fetch-metadata from 2 to 3 #7470

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
configure:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- name: Pull request auto merge enabler
if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]'
uses: poad/github-pull-request-auto-merge-enable-action@v3.0.2
with:
pull_request_number: ${{ github.event.pull_request.number }}
github_token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.event.repository.name }}
owner: ${{ github.repository_owner }}
merge_method: SQUASH
build:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- { os: windows-latest, target: 'x86_64-pc-windows-msvc' }
- { os: macOS-latest, target: 'x86_64-apple-darwin' }
- { os: ubuntu-latest, target: 'x86_64-unknown-linux-gnu' }
- { os: ubuntu-latest, target: 'x86_64-unknown-linux-musl' }
# - { os: windows-latest, target: 'arch64-pc-windows-msvc' }
# - { os: macOS-11, target: 'aarch64-apple-darwin' }
# - { os: ubuntu-latest, target: 'aarch64-unknown-linux-gnu' }
# - { os: ubuntu-latest, target: 'aarch64-unknown-linux-musl' }
steps:
- name: Add cross build targets
run: rustup target add ${{ matrix.config.target }}
- name: Update Rust toolchain
run: rustup update
- name: Install cross
run: cargo install cross
- uses: actions/checkout@v6
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose