Skip to content

Update dependencies, fix rcgen api change #70

Update dependencies, fix rcgen api change

Update dependencies, fix rcgen api change #70

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
jobs:
frontend:
name: Build frontend assets
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal
- run: rustup target add wasm32-unknown-unknown
- uses: jetli/[email protected]
with:
version: 'v0.16.0'
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
frontend/target/
key: frontend-${{ hashFiles('frontend/Cargo.toml') }}
restore-keys: frontend-
- name: Build frontend
run: trunk build
working-directory: frontend
- uses: actions/upload-artifact@v4
with:
name: frontend-build-${{ github.sha }}
path: frontend/dist
build:
name: Binaries for ${{ matrix.name }}
needs: frontend
runs-on: ${{ matrix.os }}
strategy:
matrix:
name:
- linux-x86-64-gnu
- linux-armv7-gnu
- linux-arm64-gnu
- linux-x86-64-musl
- linux-arm64-musl
include:
- name: linux-x86-64-gnu
os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
platform: ~
cross: false
- name: linux-armv7-gnu
os: ubuntu-20.04
target: armv7-unknown-linux-gnueabihf
platform: ~
cross: true
- name: linux-arm64-gnu
os: ubuntu-20.04
target: aarch64-unknown-linux-gnu
platform: ~
cross: true
- name: linux-x86-64-musl
os: ubuntu-20.04
target: x86_64-unknown-linux-musl
platform: amd64
cross: true
- name: linux-arm64-musl
os: ubuntu-20.04
target: aarch64-unknown-linux-musl
platform: arm64
cross: true
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal
- uses: actions/download-artifact@v4
with:
name: frontend-build-${{ github.sha }}
path: frontend/dist
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
backend/target/
key: backend-${{ matrix.name }}-${{ hashFiles('backend/Cargo.toml') }}
restore-keys: backend-${{ matrix.name }}-
- run: cargo install cross --git https://github.com/cross-rs/cross || true
- name: Build
if: ${{ !matrix.cross }}
run: cargo build --release --locked --target ${{ matrix.target }} --manifest-path backend/Cargo.toml
- name: Cross build
if: ${{ matrix.cross }}
run: cross build --release --locked --target ${{ matrix.target }} --manifest-path backend/Cargo.toml