diff --git a/.github/workflows/linux_cli_eyra.yml b/.github/workflows/linux_cli_eyra.yml index 63d7357..a577adb 100644 --- a/.github/workflows/linux_cli_eyra.yml +++ b/.github/workflows/linux_cli_eyra.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v3 - name: Install basic libraries - run: sudo apt-get update; sudo apt install -y + run: sudo apt-get update; sudo apt install -y ffmpeg - name: Setup rust version run: rustup default ${{ matrix.toolchain }} diff --git a/.github/workflows/linux_gui.yml b/.github/workflows/linux_gui.yml index bcdd94a..b6e3483 100644 --- a/.github/workflows/linux_gui.yml +++ b/.github/workflows/linux_gui.yml @@ -9,6 +9,50 @@ env: CARGO_TERM_COLOR: always jobs: + linux-krokiet-gui: + strategy: + matrix: + toolchain: [ stable, 1.72.1 ] + type: [ release ] + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + + - name: Install basic libraries + run: sudo apt-get update; sudo apt install libgtk-4-dev libheif-dev -y + + - name: Setup rust version + run: rustup default ${{ matrix.toolchain }} + + - name: Build Release Krokiet + run: cargo build --release --bin krokiet + env: + CARGO_INCREMENTAL: 0 + RUSTFLAGS: "-C debuginfo=0" + if: ${{ (matrix.type == 'release') }} + + - name: Store Linux GUI Krokiet + uses: actions/upload-artifact@v3 + with: + name: krokiet-${{ runner.os }}-${{ matrix.toolchain }} + path: target/release/krokiet + if: ${{ matrix.type == 'release' }} + + - name: Build Release Krokiet heif + run: cargo build --release --bin krokiet --features heif + env: + CARGO_INCREMENTAL: 0 + RUSTFLAGS: "-C debuginfo=0" + if: ${{ (matrix.type == 'release') }} + + - name: Store Linux GUI Krokiet heif + uses: actions/upload-artifact@v3 + with: + name: krokiet-${{ runner.os }}-${{ matrix.toolchain }}-heif + path: target/release/krokiet + if: ${{ matrix.type == 'release' }} + + linux-gui: strategy: matrix: @@ -25,32 +69,33 @@ jobs: run: rustup default ${{ matrix.toolchain }} - name: Build Release Heif - run: cargo build --release --features heif + run: cargo build --release --bin czkawka_gui --features heif env: CARGO_INCREMENTAL: 0 RUSTFLAGS: "-C debuginfo=0" - if: ${{ (matrix.type == 'release') && (matrix.toolchain == '1.72.1') }} + if: ${{ (matrix.type == 'release') }} - name: Store Linux GUI Heif uses: actions/upload-artifact@v3 with: name: czkawka_gui-${{ runner.os }}-${{ matrix.toolchain }}-heif path: target/release/czkawka_gui - if: ${{ matrix.type == 'release' }} + if: ${{ (matrix.type == 'release') && (matrix.toolchain == 'stable') }} - name: Build Release - run: cargo build --release + run: cargo build --release --bin czkawka_gui env: CARGO_INCREMENTAL: 0 RUSTFLAGS: "-C debuginfo=0" - if: ${{ (matrix.type == 'release') && (matrix.toolchain == 'stable') }} + if: ${{ (matrix.type == 'release') }} + # Only store stable toolchain - name: Store Linux GUI uses: actions/upload-artifact@v3 with: name: czkawka_gui-${{ runner.os }}-${{ matrix.toolchain }} path: target/release/czkawka_gui - if: ${{ matrix.type == 'release' }} + if: ${{ (matrix.type == 'release') && (matrix.toolchain == 'stable') }} linux-appimage-gui: strategy: @@ -68,7 +113,7 @@ jobs: run: rustup default ${{ matrix.toolchain }} - name: Build Release - run: cargo build --release + run: cargo build --release --bin czkawka_gui env: CARGO_INCREMENTAL: 0 RUSTFLAGS: "-C debuginfo=0" diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 9bf36e5..4e953ce 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -50,6 +50,13 @@ jobs: path: target/release/czkawka_gui if: ${{ matrix.type == 'release' }} + - name: Store MacOS Krokiet + uses: actions/upload-artifact@v3 + with: + name: czkawka_gui-${{ runner.os }}-${{ matrix.toolchain }} + path: target/release/krokiet + if: ${{ matrix.type == 'release' }} + - name: Build Release Heif run: cargo build --release --features heif env: @@ -68,4 +75,11 @@ jobs: with: name: czkawka_gui-${{ runner.os }}-${{ matrix.toolchain }}-heif path: target/release/czkawka_gui + if: ${{ matrix.type == 'release' }} + + - name: Store MacOS Krokiet Heif + uses: actions/upload-artifact@v3 + with: + name: czkawka_gui-${{ runner.os }}-${{ matrix.toolchain }}-heif + path: target/release/krokiet if: ${{ matrix.type == 'release' }} \ No newline at end of file diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index b276683..8e89bf5 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -9,8 +9,47 @@ env: CARGO_TERM_COLOR: always jobs: + krokiet: + strategy: + fail-fast: false + matrix: + use_heif: [ normal ] + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup rust version + run: rustup default ${{ matrix.toolchain }} + + - name: Compile Krokiet + run: cargo build --release --bin krokiet + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: krokiet-windows-${{ github.sha }}-${{ matrix.use_heif }} + path: | + target/release/krokiet.exe + if-no-files-found: error + + - name: Show console window on windows + run: sed -i 's|\#\!\[windows_subsystem|//#![windows_subsystem|' czkawka_gui/src/main.rs + + - name: Compile Krokiet Console + run: cargo build --release --bin krokiet + + - name: Upload artifacts Console + uses: actions/upload-artifact@v3 + with: + name: krokiet-windows-${{ github.sha }}-${{ matrix.use_heif }}-console + path: | + target/release/krokiet.exe + if-no-files-found: error + + container: strategy: + fail-fast: false matrix: use_heif: [ non_heif ] #, heif ] - heif problems with mingw runs-on: ubuntu-22.04