Skip to content

chore: register aleo token adapters #194

chore: register aleo token adapters

chore: register aleo token adapters #194

name: Agent Release Artifacts

Check failure on line 1 in .github/workflows/agent-release-artifacts.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/agent-release-artifacts.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: prepare
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: agent-release-artifacts-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
jobs:
prepare:
runs-on: ubuntu-latest
# Only run for agents-v* tags
if: startsWith(github.ref_name, 'agents-v')
outputs:
tag_name: ${{ github.ref_name }}
build:
needs: prepare
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- TARGET: x86_64-unknown-linux-gnu
OS: depot-ubuntu-24.04-8
- TARGET: x86_64-apple-darwin
OS: depot-macos-latest
- TARGET: aarch64-apple-darwin
OS: depot-macos-latest
runs-on: ${{ matrix.OS }}
steps:
- name: checkout
uses: actions/checkout@v5
- name: ubuntu setup
if: ${{ matrix.OS == 'depot-ubuntu-24.04-8' }}
run: |
sudo apt-get update -qq
sudo apt-get install -qq crossbuild-essential-arm64 crossbuild-essential-armhf
# some additional configuration for cross-compilation on linux
cat >>~/.cargo/config <<EOF
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-gnu-gcc"
EOF
- name: setup rust
uses: dtolnay/rust-toolchain@stable
with:
target: ${{ matrix.TARGET }}
- name: setup target
run: rustup target add ${{ matrix.TARGET }}
working-directory: ./rust/main
- name: build
run: cargo build --release --target ${{ matrix.TARGET }} --bin relayer --bin scraper --bin validator
working-directory: ./rust/main
- name: make executable
if: ${{ matrix.OS == 'depot-ubuntu-24.04-8' || matrix.OS == 'depot-macos-latest' }}
run: chmod ug+x,-w relayer scraper validator
working-directory: rust/main/target/${{ matrix.TARGET }}/release
- name: upload binaries
uses: actions/upload-artifact@v5
with:
name: ${{ matrix.TARGET }}-${{ needs.prepare.outputs.tag_name }}
path: |
rust/main/target/${{ matrix.TARGET }}/release/relayer
rust/main/target/${{ matrix.TARGET }}/release/relayer.exe
rust/main/target/${{ matrix.TARGET }}/release/scraper
rust/main/target/${{ matrix.TARGET }}/release/scraper.exe
rust/main/target/${{ matrix.TARGET }}/release/validator
rust/main/target/${{ matrix.TARGET }}/release/validator.exe
if-no-files-found: error