2024-04-06 09:33:08 +00:00
|
|
|
name: Rust Build
|
2024-04-06 10:58:45 +00:00
|
|
|
run-name: ${{ github.actor }} is building 🚀
|
2024-04-06 09:33:08 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- release
|
|
|
|
|
|
|
|
jobs:
|
2024-04-06 10:02:31 +00:00
|
|
|
push:
|
2024-04-06 10:37:25 +00:00
|
|
|
name: building
|
2024-04-06 09:33:08 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
2024-04-06 11:29:34 +00:00
|
|
|
- release_for: Windows - X86_64
|
|
|
|
target: x86_64-pc-windows-gnu
|
2024-04-06 10:22:15 +00:00
|
|
|
- release_for: Linux - X86_64
|
|
|
|
target: x86_64-unknown-linux-musl
|
2024-04-06 11:42:26 +00:00
|
|
|
# Broken: https://github.com/rust-build/rust-build.action/issues/88
|
|
|
|
# - release_for: Mac - X86_64
|
|
|
|
# target: x86_64-apple-darwin
|
2024-04-06 09:33:08 +00:00
|
|
|
steps:
|
2024-04-06 11:06:42 +00:00
|
|
|
- name: Checkout branch
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Compile rust
|
2024-04-06 10:41:02 +00:00
|
|
|
timeout-minutes: 10
|
2024-04-06 09:33:08 +00:00
|
|
|
id: compile
|
2024-04-06 10:58:45 +00:00
|
|
|
uses: rust-build/rust-build.action@v1.4.5
|
2024-04-06 09:33:08 +00:00
|
|
|
with:
|
2024-04-06 10:58:45 +00:00
|
|
|
RUSTTARGET: ${{ matrix.target }}
|
|
|
|
UPLOAD_MODE: none
|