Skip to content

Enable persist credentials #5

Enable persist credentials

Enable persist credentials #5

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
build_configuration:
- target: aarch64-unknown-linux-gnu
cpu: neoverse-v2
- target: x86_64-unknown-linux-gnu
cpu: znver4
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.build_configuration.target }}-${{ matrix.build_configuration.cpu }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.KAKADU_SSH_KEY }}
persist-credentials: 'true'
submodules: 'true'
set-safe-directory: 'true'
- uses: swatinem/rust-cache@v2
with:
prefix-key: 'v0-rust-${{ matrix.build_configuration.target }}-${{ matrix.build_configuration.cpu }}'
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
targets: ${{ matrix.build_configuration.target }}
- name: Run build
run: cargo build
env:
RUSTFLAGS: "-Ctarget-cpu=${{ matrix.build_configuration.cpu }}"