1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-12-15 06:14:25 +03:00

chore(cd): update windows runners to windows-2022

This commit is contained in:
Orhun Parmaksız 2022-07-12 18:12:28 +02:00
parent 4b2ded0cf1
commit 8621a59d47
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90

View File

@ -53,15 +53,15 @@ jobs:
TOOLCHAIN: stable
TARGET: x86_64-unknown-linux-musl
- BUILD: win-gnu
OS: windows-2019
OS: windows-2022
TOOLCHAIN: stable
TARGET: x86_64-pc-windows-gnu
- BUILD: win-msvc
OS: windows-2019
OS: windows-2022
TOOLCHAIN: stable
TARGET: x86_64-pc-windows-msvc
- BUILD: win32-msvc
OS: windows-2019
OS: windows-2022
TOOLCHAIN: stable
TARGET: i686-pc-windows-msvc
- BUILD: macos
@ -95,7 +95,7 @@ jobs:
cp {LICENSE,README.md,CHANGELOG.md} release/
OUT_DIR=release/completions/ cargo run --release --bin git-cliff-completions
OUT_DIR=release/man/ cargo run --release --bin git-cliff-mangen
if [ "${{ matrix.OS }}" = "windows-2019" ]; then
if [ "${{ matrix.OS }}" = "windows-2022" ]; then
cp target/${{ matrix.TARGET }}/release/git-cliff.exe release/
else
cp target/${{ matrix.TARGET }}/release/git-cliff release/
@ -104,7 +104,7 @@ jobs:
- name: Create release artifacts
shell: bash
run: |
if [ "${{ matrix.OS }}" = "windows-2019" ]; then
if [ "${{ matrix.OS }}" = "windows-2022" ]; then
7z a -tzip "git-cliff-${{ env.RELEASE_VERSION }}-${{ matrix.TARGET }}.zip" \
git-cliff-${{ env.RELEASE_VERSION }}/
else