Change Github CI
This commit is contained in:
parent
582e5417ac
commit
9165773929
16
.github/workflows/linux_cli.yml
vendored
16
.github/workflows/linux_cli.yml
vendored
|
@ -18,22 +18,12 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
override: true
|
||||
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
target
|
||||
key: linux-default-${{github.ref}}-${{github.sha}}
|
||||
restore-keys: |
|
||||
linux-default-${{github.ref}}-${{github.sha}}
|
||||
|
||||
- name: Install basic libraries
|
||||
run: sudo apt-get update; sudo apt install libheif-dev -y
|
||||
|
||||
- name: Setup rust version
|
||||
run: rustup default ${{ matrix.toolchain }}
|
||||
|
||||
- name: Build Release
|
||||
run: cargo build --release --bin czkawka_cli
|
||||
env:
|
||||
|
|
40
.github/workflows/linux_gui.yml
vendored
40
.github/workflows/linux_gui.yml
vendored
|
@ -18,22 +18,12 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
override: true
|
||||
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
target
|
||||
key: linux-default-${{github.ref}}-${{github.sha}}
|
||||
restore-keys: |
|
||||
linux-default-${{github.ref}}-${{github.sha}}
|
||||
|
||||
- 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 Heif
|
||||
run: cargo build --release --features heif
|
||||
env:
|
||||
|
@ -64,22 +54,12 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
override: true
|
||||
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
target
|
||||
key: linux-appimage-gui-${{github.ref}}-${{github.sha}}
|
||||
restore-keys: |
|
||||
linux-appimage-gui-${{github.ref}}-${{github.sha}}
|
||||
|
||||
- name: Install Dependencies
|
||||
run: sudo apt-get update; sudo apt install libgtk-4-dev libheif-dev librsvg2-dev wget fuse libfuse2 -y
|
||||
|
||||
- name: Setup rust version
|
||||
run: rustup default ${{ matrix.toolchain }}
|
||||
|
||||
- name: Build Release
|
||||
run: cargo build --release
|
||||
env:
|
||||
|
@ -130,14 +110,12 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
override: true
|
||||
|
||||
- name: Install Dependencies
|
||||
run: sudo apt-get update; sudo apt install libgtk-4-dev libheif-dev librsvg2-dev wget fuse libfuse2 -y xvfb
|
||||
|
||||
- name: Setup rust version
|
||||
run: rustup default ${{ matrix.toolchain }}
|
||||
|
||||
- name: Test
|
||||
run: xvfb-run cargo test
|
||||
env:
|
||||
|
|
16
.github/workflows/mac.yml
vendored
16
.github/workflows/mac.yml
vendored
|
@ -18,19 +18,6 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
override: true
|
||||
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
target
|
||||
key: mac-${{github.ref}}-${{github.sha}}
|
||||
restore-keys: |
|
||||
mac-${{github.ref}}-${{github.sha}}
|
||||
|
||||
- name: Install Homebrew
|
||||
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||
|
||||
|
@ -40,6 +27,9 @@ jobs:
|
|||
brew install rust gtk4 libheif || true
|
||||
brew link --overwrite python@3.11
|
||||
|
||||
- name: Setup rust version
|
||||
run: rustup default ${{ matrix.toolchain }}
|
||||
|
||||
- name: Build Release
|
||||
run: cargo build --release
|
||||
env:
|
||||
|
|
14
.github/workflows/quality.yml
vendored
14
.github/workflows/quality.yml
vendored
|
@ -14,20 +14,6 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
target
|
||||
key: quality-${{github.ref}}-${{github.sha}}
|
||||
restore-keys: |
|
||||
quality-cli-${{github.ref}}-${{github.sha}}
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
components: rustfmt, clippy
|
||||
override: true
|
||||
|
||||
- name: Install Gtk 4
|
||||
run: sudo apt-get update; sudo apt install -y libgtk-4-dev libheif-dev -y
|
||||
|
||||
|
|
10
.github/workflows/windows.yml
vendored
10
.github/workflows/windows.yml
vendored
|
@ -18,11 +18,6 @@ jobs:
|
|||
- name: Install additional dependencies
|
||||
# gio is for the build script
|
||||
run: dnf install wget2 unzip mingw64-bzip2.noarch mingw64-poppler mingw64-poppler-glib mingw32-python3 rust-gio-devel adwaita-icon-theme -y && dnf clean all -y
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
target: x86_64-pc-windows-gnu
|
||||
- name: Cache ~/.cargo
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
|
@ -82,11 +77,6 @@ jobs:
|
|||
- name: Install additional dependencies
|
||||
# gio is for the build script
|
||||
run: dnf install wget2 unzip mingw64-bzip2.noarch mingw64-poppler mingw64-poppler-glib mingw32-python3 rust-gio-devel adwaita-icon-theme -y && dnf clean all -y
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
target: x86_64-pc-windows-gnu
|
||||
- name: Cache ~/.cargo
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue