2024-04-30 06:44:33 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v**
|
|
|
|
jobs:
|
|
|
|
build-artifacts:
|
|
|
|
runs-on: docker
|
2024-05-02 20:04:56 +00:00
|
|
|
container:
|
|
|
|
image: registry.serguzim.me/emgauwa/runner
|
2024-04-30 06:44:33 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
arch:
|
2024-05-02 20:04:56 +00:00
|
|
|
- x86_64-unknown-linux-gnu # for "standard" systems
|
|
|
|
- x86_64-unknown-linux-musl # for docker
|
2024-04-30 06:44:33 +00:00
|
|
|
- arm-unknown-linux-gnueabihf # for raspberry pi
|
|
|
|
steps:
|
|
|
|
- uses: https://code.forgejo.org/actions/checkout@v3
|
|
|
|
- id: cargo-build-release
|
|
|
|
run: |
|
|
|
|
source "$HOME/.cargo/env"
|
|
|
|
cross build --target ${{ matrix.arch }} --release
|
|
|
|
shell: bash
|
|
|
|
- uses: https://code.forgejo.org/actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: emgauwa-core_${{ matrix.arch }}
|
|
|
|
path: ${{ github.workspace }}/target/${{ matrix.arch }}/release/emgauwa-core
|