-
-
Notifications
You must be signed in to change notification settings - Fork 713
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into file-debug
- Loading branch information
Showing
79 changed files
with
1,203 additions
and
723 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,8 @@ env: | |
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
macos: | ||
runs-on: macos-latest | ||
macos_x86_64: | ||
runs-on: macos-13 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
@@ -24,9 +24,10 @@ jobs: | |
brew link --overwrite [email protected] | ||
- name: Setup rust version | ||
run: rustup default stable | ||
run: rustup default 1.85.0 | ||
|
||
- name: Enable LTO | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
run: sed -i '' 's/#lto = "thin"/lto = "thin"/g' Cargo.toml | ||
|
||
- name: Build Release | ||
|
@@ -35,55 +36,133 @@ jobs: | |
- name: Store MacOS CLI | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: czkawka_cli-${{ runner.os }} | ||
name: czkawka_cli-${{ runner.os }}-x86_64 | ||
path: target/release/czkawka_cli | ||
|
||
- name: Store MacOS GUI | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: czkawka_gui-${{ runner.os }} | ||
name: czkawka_gui-${{ runner.os }}-x86_64 | ||
path: target/release/czkawka_gui | ||
|
||
- name: Store MacOS Krokiet | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: krokiet-${{ runner.os }} | ||
name: krokiet-${{ runner.os }}-x86_64 | ||
path: target/release/krokiet | ||
|
||
- name: Prepare files to release | ||
run: | | ||
mv target/release/czkawka_cli macos_czkawka_cli | ||
mv target/release/czkawka_gui macos_czkawka_gui | ||
mv target/release/krokiet macos_krokiet | ||
mv target/release/czkawka_cli macos_czkawka_cli_x86_64 | ||
mv target/release/czkawka_gui macos_czkawka_gui_x86_64 | ||
mv target/release/krokiet macos_krokiet_x86_64 | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
with: | ||
tag_name: "Nightly" | ||
files: | | ||
macos_czkawka_cli | ||
macos_czkawka_gui | ||
macos_krokiet | ||
macos_czkawka_cli_x86_64 | ||
macos_czkawka_gui_x86_64 | ||
macos_krokiet_x86_64 | ||
token: ${{ secrets.PAT_REPOSITORY }} | ||
|
||
# TODO - compilation is broken, not sure why, if you want to use it you need to fix it(I'm too lazy and don't have MacOS) | ||
- name: Build Release Heif | ||
run: cargo build --release --features heif | ||
|
||
- name: Store MacOS CLI Heif | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: czkawka_cli-${{ runner.os }}-heif-x86_64 | ||
path: target/release/czkawka_cli | ||
|
||
- name: Store MacOS GUI Heif | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: czkawka_gui-${{ runner.os }}-heif-x86_64 | ||
path: target/release/czkawka_gui | ||
|
||
- name: Store MacOS Krokiet Heif | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: krokiet-${{ runner.os }}-heif-x86_64 | ||
path: target/release/krokiet | ||
|
||
- name: Prepare files to release 2 | ||
run: | | ||
mv target/release/czkawka_cli macos_czkawka_cli_heif_x86_64 | ||
mv target/release/czkawka_gui macos_czkawka_gui_heif_x86_64 | ||
mv target/release/krokiet macos_krokiet_heif_x86_64 | ||
- name: Release 2 | ||
uses: softprops/action-gh-release@v2 | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
with: | ||
tag_name: "Nightly" | ||
files: | | ||
macos_czkawka_cli_heif_x86_64 | ||
macos_czkawka_gui_heif_x86_64 | ||
macos_krokiet_heif_x86_64 | ||
token: ${{ secrets.PAT_REPOSITORY }} | ||
|
||
# # TODO - compilation is broken, not sure why | ||
# - name: Build Release Heif | ||
# run: cargo build --release --features heif | ||
# | ||
# - name: Store MacOS CLI Heif | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: czkawka_cli-${{ runner.os }}-heif | ||
# path: target/release/czkawka_cli | ||
# | ||
# - name: Store MacOS GUI Heif | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: czkawka_gui-${{ runner.os }}-heif | ||
# path: target/release/czkawka_gui | ||
# | ||
# - name: Store MacOS Krokiet Heif | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: krokiet-${{ runner.os }}-heif | ||
# path: target/release/krokiet | ||
macos_arm: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Homebrew | ||
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
|
||
- name: Install GTK4 | ||
run: | | ||
brew link --overwrite [email protected] | ||
brew install rust gtk4 libheif || true | ||
brew link --overwrite [email protected] | ||
- name: Setup rust version | ||
run: rustup default 1.85.0 | ||
|
||
- name: Enable LTO | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
run: sed -i '' 's/#lto = "thin"/lto = "thin"/g' Cargo.toml | ||
|
||
- name: Build Release | ||
run: cargo build --release | ||
|
||
- name: Store MacOS CLI | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: czkawka_cli-${{ runner.os }}-arm | ||
path: target/release/czkawka_cli | ||
|
||
- name: Store MacOS GUI | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: czkawka_gui-${{ runner.os }}-arm | ||
path: target/release/czkawka_gui | ||
|
||
- name: Store MacOS Krokiet | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: krokiet-${{ runner.os }}-arm | ||
path: target/release/krokiet | ||
|
||
- name: Prepare files to release | ||
run: | | ||
mv target/release/czkawka_cli macos_czkawka_cli_arm | ||
mv target/release/czkawka_gui macos_czkawka_gui_arm | ||
mv target/release/krokiet macos_krokiet_arm | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
with: | ||
tag_name: "Nightly" | ||
files: | | ||
macos_czkawka_cli_arm | ||
macos_czkawka_gui_arm | ||
macos_krokiet_arm | ||
token: ${{ secrets.PAT_REPOSITORY }} | ||
# TODO - arm builds not works now with heif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.