From 59e0e901c5e4ab71957d77353ac58a7f6c65ac2d Mon Sep 17 00:00:00 2001 From: robtfm <50659922+robtfm@users.noreply.github.com> Date: Sat, 31 Aug 2024 02:06:59 +0100 Subject: [PATCH] add console version to release --- .github/workflows/package.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index e81bfd2d..2e882a49 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -57,8 +57,13 @@ jobs: os: self-hosted-windows # target: x86_64-pc-windows-msvc + console: [no_console] + include: + - os: self-hosted-windows + console: console + env: - PACKAGE_FILE: ${{ needs.create-release.outputs.package_prefix }}-${{ matrix.build_name }}.${{ startsWith(matrix.build_name, 'lin') && 'tar.gz' || 'zip' }} + PACKAGE_FILE: ${{ needs.create-release.outputs.package_prefix }}-${{ matrix.build_name }}${{ startsWith(matrix.build_name, 'console') && '_console' || ''}}.${{ startsWith(matrix.build_name, 'lin') && 'tar.gz' || 'zip' }} APPIMAGE_FILE: ${{ needs.create-release.outputs.package_prefix }}-${{ matrix.build_name }}.AppImage CARGO_BUILD_DIR: target/release @@ -114,16 +119,19 @@ jobs: Add-Content $env:GITHUB_ENV "FFMPEG_DIR=c:\ffmpeg-6.0`n" - - name: Cargo build (windows) - if: runner.os == 'windows' + - name: Cargo build (windows no console) + if: runner.os == 'windows' && matrix.console == 'no_console' run: cargo build --release --bin decentra-bevy -j8 + - name: Cargo build (windows console) + if: runner.os == 'windows' && matrix.console == 'console' + run: cargo build --release --bin decentra-bevy -j8 --features "console" - name: Cargo build (macos) if: runner.os == 'macos' run: cargo build --release --bin decentra-bevy - name: Cargo build (linux) if: runner.os == 'linux' run: cargo build --release --bin decentra-bevy --no-default-features --features "ffmpeg,inspect" - + - name: Package common run: | mkdir package