Skip to content

build(deps): update rust crate toml to 0.8.19 #327

build(deps): update rust crate toml to 0.8.19

build(deps): update rust crate toml to 0.8.19 #327

Workflow file for this run

on:
push:
branches:
- "main"
pull_request:
name: CI
jobs:
build-win:
name: Build Windows Binary
runs-on: windows-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # tag=v1
with:
toolchain: stable
- uses: actions/cache@c17f4bf4666a8001b1a45c09eb7a485c41aa64c3 # v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # tag=v1
with:
command: build
args: --release --all-features
- uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3
with:
name: win_x86_64_binary
path: target/release/teres.exe
build-linux:
name: Build Linux Binary
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- name: Install build dependencies
run: |
sudo apt update && sudo apt-get install -y libgtk-4-dev build-essential libgtk-3-dev
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # tag=v1
with:
toolchain: stable
- uses: actions/cache@c17f4bf4666a8001b1a45c09eb7a485c41aa64c3 # v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # tag=v1
with:
command: build
args: --release --all-features
- uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3
with:
name: linux_x86_64_binary
path: target/release/teres
check:
name: Check
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- name: Install build dependencies
run: |
sudo apt update && sudo apt-get install -y libgtk-4-dev build-essential libgtk-3-dev
- name: Install stable toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # tag=v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions/cache@c17f4bf4666a8001b1a45c09eb7a485c41aa64c3 # v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run cargo check
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # tag=v1
with:
command: check
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- name: Install build dependencies
run: |
sudo apt update && sudo apt-get install -y libgtk-4-dev build-essential libgtk-3-dev
- name: Install stable toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # tag=v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- uses: actions/cache@c17f4bf4666a8001b1a45c09eb7a485c41aa64c3 # v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run cargo fmt
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # tag=v1
with:
command: fmt
args: --all -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # tag=v1
with:
command: clippy
args: -- -D warnings
test:
name: Test Suite
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- name: Build vapoursynth
run: |
sudo apt-get update
sudo apt-get install g++ make autoconf automake libtool pkg-config nasm git
git clone --branch release-3.0.4 https://github.com/sekrit-twc/zimg.git
cd zimg
./autogen.sh
./configure
make -j4
sudo make install
cd ..
sudo apt-get install cython3
git clone --branch R61 https://github.com/vapoursynth/vapoursynth.git
cd vapoursynth
./autogen.sh
./configure
make
sudo make install
- name: Install build dependencies
run: |
sudo apt-get install -y libgtk-4-dev build-essential libgtk-3-dev ffmpeg
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # tag=v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions/cache@c17f4bf4666a8001b1a45c09eb7a485c41aa64c3 # v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # tag=v1
with:
command: test
build-deb:
name: Build .deb
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- name: Install build dependencies
run: |
sudo apt update && sudo apt-get install -y libgtk-4-dev build-essential libgtk-3-dev
- name: Install stable toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # tag=v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions/cache@c17f4bf4666a8001b1a45c09eb7a485c41aa64c3 # v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run cargo install
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # tag=v1
with:
command: install
args: cargo-deb
- name: Run cargo deb
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # tag=v1
with:
command: deb
- id: pkg_ver
run: echo "ver=$(cat Cargo.toml | grep -oP '^version = \"\K[\d.\d.\d]+(?=\")')" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3
with:
name: linux_x86_64_deb
path: target/debian/teres_${{ steps.pkg_ver.outputs.ver }}_amd64.deb