m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-19 10:23:42 -05:00
Files
cup/.github/workflows/build.yml
Sergio b0bdb294c0 Update build.yml
Fix typo
2024-07-09 10:40:13 +03:00

35 lines
790 B
YAML

name: Build binaries
on:
push:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
arch:
- x86_64-unknown-linux-musl
- aarch64-unknown-linux-musl
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up cache
uses: Mozilla-Actions/sccache-action@v0.0.5
- name: Install cross
run: cargo install cross
- name: Build
run: cross build --release --target ${{ matrix.arch }}
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: cup-${{ matrix.arch }}
path: ./target/${{ matrix.arch }}/release/cup