diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index f76211f..f534327 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -7,23 +7,29 @@ on: jobs: push: - name: building + name: building - ${{ matrix.platform.release_for }} runs-on: ubuntu-latest strategy: fail-fast: false matrix: include: - - target: x86_64-pc-windows-gnu - archive: zip - - target: x86_64-unknown-linux-musl - archive: tar.gz tar.xz tar.zst - - target: x86_64-apple-darwin - archive: zip +# - release_for: Windows - X86_64 +# target: x86_64-pc-windows-gnu + - release_for: Linux - X86_64 + target: x86_64-unknown-linux-musl +# - release_for: FreeBSD - x86_64 +# target: x86_64-unknown-freebsd +# - release_for: Mac - X86_64 +# target: x86_64-apple-darwin +# - release_for: Mac - ARM +# target: aarch64-apple-darwin steps: - uses: actions/checkout@master - name: Compile id: compile - uses: rust-build/rust-build.action@v1.4.5 + uses: houseabsolute/actions-rust-cross@v0 with: - RUSTTARGET: ${{ matrix.target }} - UPLOAD_MODE: none + command: build + target: ${{ matrix.platform.target }} + args: "--locked --release" + strip: true diff --git a/src/utils/config.rs b/src/utils/config.rs index bdb422a..7db5137 100644 --- a/src/utils/config.rs +++ b/src/utils/config.rs @@ -144,6 +144,7 @@ type ConfigDirectories = Vec; #[derive(Debug, Clone)] pub struct Config { + #[allow(dead_code)] pub(crate) name: String, pub(crate) tasks: ConfigTasks, pub(crate) file_path: PathBuf,