Switch the compile action for a new one.
Rust Build / building - ${{ matrix.platform.release_for }} (Linux - X86_64, x86_64-unknown-linux-musl) (push) Waiting to run Details

This commit is contained in:
Ian Wijma 2024-04-06 21:22:15 +11:00
parent bdf6e57f42
commit 8a9c515916
2 changed files with 17 additions and 10 deletions

View File

@ -7,23 +7,29 @@ on:
jobs: jobs:
push: push:
name: building name: building - ${{ matrix.platform.release_for }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- target: x86_64-pc-windows-gnu # - release_for: Windows - X86_64
archive: zip # target: x86_64-pc-windows-gnu
- target: x86_64-unknown-linux-musl - release_for: Linux - X86_64
archive: tar.gz tar.xz tar.zst target: x86_64-unknown-linux-musl
- target: x86_64-apple-darwin # - release_for: FreeBSD - x86_64
archive: zip # target: x86_64-unknown-freebsd
# - release_for: Mac - X86_64
# target: x86_64-apple-darwin
# - release_for: Mac - ARM
# target: aarch64-apple-darwin
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- name: Compile - name: Compile
id: compile id: compile
uses: rust-build/rust-build.action@v1.4.5 uses: houseabsolute/actions-rust-cross@v0
with: with:
RUSTTARGET: ${{ matrix.target }} command: build
UPLOAD_MODE: none target: ${{ matrix.platform.target }}
args: "--locked --release"
strip: true

View File

@ -144,6 +144,7 @@ type ConfigDirectories = Vec<String>;
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct Config { pub struct Config {
#[allow(dead_code)]
pub(crate) name: String, pub(crate) name: String,
pub(crate) tasks: ConfigTasks, pub(crate) tasks: ConfigTasks,
pub(crate) file_path: PathBuf, pub(crate) file_path: PathBuf,