2022-11-26 08:38:27 +13:00
|
|
|
name: 🐧 Linux CLI
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * 2'
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
linux-cli:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-12-04 00:06:42 +13:00
|
|
|
toolchain: [ stable, 1.72.1 ]
|
2022-11-26 08:38:27 +13:00
|
|
|
type: [ release ]
|
2023-01-29 06:54:02 +13:00
|
|
|
runs-on: ubuntu-20.04
|
2022-11-26 08:38:27 +13:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install basic libraries
|
2023-12-04 00:06:42 +13:00
|
|
|
run: sudo apt update || true; sudo apt install libheif-dev ffmpeg -y
|
2022-11-26 08:38:27 +13:00
|
|
|
|
2023-05-15 01:00:53 +12:00
|
|
|
- name: Setup rust version
|
|
|
|
run: rustup default ${{ matrix.toolchain }}
|
|
|
|
|
2022-11-26 08:38:27 +13:00
|
|
|
- name: Build Release
|
|
|
|
run: cargo build --release --bin czkawka_cli
|
|
|
|
if: ${{ (matrix.type == 'release') }}
|
|
|
|
|
|
|
|
- name: Store Linux CLI
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: czkawka_cli-${{ runner.os }}-${{ matrix.toolchain }}
|
|
|
|
path: target/release/czkawka_cli
|
|
|
|
if: ${{ matrix.type == 'release' }}
|
|
|
|
|
|
|
|
- name: Linux Regression Test
|
|
|
|
run: |
|
2023-10-13 05:48:46 +13:00
|
|
|
wget https://github.com/qarmin/czkawka/releases/download/6.0.0/TestFiles.zip
|
|
|
|
cd ci_tester
|
|
|
|
cargo build --release
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
ci_tester/target/release/ci_tester target/release/czkawka_cli
|
|
|
|
if: ${{ matrix.type == 'release' }}
|