Update dependencies

This commit is contained in:
bytedream 2022-12-16 10:09:41 +01:00
parent f254df3bb3
commit cc9342cd0a
9 changed files with 373 additions and 768 deletions

View file

@ -16,9 +16,15 @@ jobs:
- os: ubuntu-latest
toolchain: x86_64-unknown-linux-musl
platform: linux
ext:
- os: windows-latest
toolchain: x86_64-pc-windows-gnu
platform: windows
ext: .exe
- os: macos-latest
toolchain: x86_64-apple-darwin
platform: darwin
ext:
steps:
- name: Checkout
uses: actions/checkout@v3
@ -58,74 +64,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: crunchy-cli_${{ matrix.platform }}
path: ./target/release/crunchy-cli
if-no-files-found: error
- name: Upload manpages artifact
uses: actions/upload-artifact@v3
with:
name: manpages
path: ./target/release/manpages
if-no-files-found: error
- name: Upload completions artifact
uses: actions/upload-artifact@v3
with:
name: completions
path: ./target/release/completions
if-no-files-found: error
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- run: vcpkg integrate install
- name: Install OpenSSL
run: vcpkg install openssl:x64-windows-static-md
- name: Set env variables
shell: bash
run: echo "CFLAGS=-I$(echo $VCPKG_INSTALLATION_ROOT)\packages\openssl_x64-windows-static-md\include" >> $GITHUB_ENV
- name: Cargo cache # https://github.com/actions/cache/blob/main/examples.md#rust---cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: x86_64-pc-windows-msvc
default: true
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --release --all-features
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features
- name: Upload binary artifact
uses: actions/upload-artifact@v3
with:
name: crunchy-cli_windows
path: ./target/release/crunchy-cli.exe
path: ./target/release/crunchy-cli${{ matrix.ext }}
if-no-files-found: error
- name: Upload manpages artifact