mirror of
https://github.com/Hopiu/lychee.git
synced 2026-05-14 00:33:10 +00:00
ci: update checkout action to v3 (#927)
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
This commit is contained in:
parent
22546a35ba
commit
7abbaa218a
4 changed files with 25 additions and 25 deletions
4
.github/workflows/auto-merge.yml
vendored
4
.github/workflows/auto-merge.yml
vendored
|
|
@ -8,10 +8,10 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
if: github.actor == 'dependabot[bot]'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ahmadnassri/action-dependabot-auto-merge@v2.6.6
|
||||
with:
|
||||
github-token: ${{ secrets.AUTOMERGE_TOKEN }}
|
||||
# Merge all updates as long as they pass CI.
|
||||
# Includes minor and patch updates.
|
||||
update_type: "semver:major"
|
||||
update_type: "semver:major"
|
||||
|
|
|
|||
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
|||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
|
|
@ -31,7 +31,7 @@ jobs:
|
|||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
|
|
@ -52,7 +52,7 @@ jobs:
|
|||
publish-check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v3
|
||||
- name: cargo fetch
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
|
|
@ -64,7 +64,7 @@ jobs:
|
|||
with:
|
||||
command: publish
|
||||
args: --dry-run --manifest-path lychee-lib/Cargo.toml
|
||||
|
||||
|
||||
# Can't check lychee binary as it depends on the lib above
|
||||
# and `--dry-run` doesn't allow unpublished crates yet.
|
||||
# https://github.com/rust-lang/cargo/issues/1169
|
||||
|
|
@ -90,7 +90,7 @@ jobs:
|
|||
- publish-check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v3
|
||||
- name: cargo fetch
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
|
|
|
|||
2
.github/workflows/links.yml
vendored
2
.github/workflows/links.yml
vendored
|
|
@ -10,7 +10,7 @@ jobs:
|
|||
linkChecker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Link Checker
|
||||
uses: lycheeverse/lychee-action@master
|
||||
|
|
|
|||
34
.github/workflows/release.yml
vendored
34
.github/workflows/release.yml
vendored
|
|
@ -1,7 +1,7 @@
|
|||
name: Release
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
types:
|
||||
- edited
|
||||
- published
|
||||
|
||||
|
|
@ -17,14 +17,14 @@ jobs:
|
|||
upload_url: ${{ steps.get_release.outputs.upload_url }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Get release
|
||||
id: get_release
|
||||
uses: bruceadams/get-release@v1.2.2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
linux:
|
||||
runs-on: ubuntu-latest
|
||||
needs: prepare
|
||||
|
|
@ -50,16 +50,16 @@ jobs:
|
|||
if: ${{ contains(matrix.target, 'arm') }}
|
||||
run: |
|
||||
echo "GNU_PREFIX=arm-linux-gnueabihf-" >> $GITHUB_ENV
|
||||
sudo apt-get install -y binutils-arm-linux-gnueabihf
|
||||
|
||||
sudo apt-get install -y binutils-arm-linux-gnueabihf
|
||||
|
||||
- name: Install aarch64 tools
|
||||
if: ${{ contains(matrix.target, 'aarch64') }}
|
||||
run: |
|
||||
echo "GNU_PREFIX=aarch64-linux-gnu-" >> $GITHUB_ENV
|
||||
sudo apt-get install -y binutils-aarch64-linux-gnu
|
||||
sudo apt-get install -y binutils-aarch64-linux-gnu
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
|
|
@ -71,7 +71,7 @@ jobs:
|
|||
with:
|
||||
command: build
|
||||
args: --release --target ${{ matrix.target }} --features vendored-openssl
|
||||
use-cross: true
|
||||
use-cross: true
|
||||
|
||||
- name: Optimize and package binary
|
||||
run: |
|
||||
|
|
@ -89,12 +89,12 @@ jobs:
|
|||
asset_path: target/${{ matrix.target }}/release/lychee.tar.gz
|
||||
upload_url: ${{needs.prepare.outputs.upload_url}}
|
||||
asset_content_type: application/gzip
|
||||
|
||||
|
||||
macos:
|
||||
runs-on: macos-latest
|
||||
needs: prepare
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
|
|
@ -117,7 +117,7 @@ jobs:
|
|||
mkdir dmg
|
||||
mv lychee dmg/
|
||||
hdiutil create -fs HFS+ -srcfolder dmg -volname lychee lychee.dmg
|
||||
|
||||
|
||||
- name: Upload binary
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
|
|
@ -134,14 +134,14 @@ jobs:
|
|||
env:
|
||||
X86_64_PC_WINDOWS_MSVC_OPENSSL_DIR: c:/vcpkg/installed/x64-windows-static
|
||||
OPENSSL_STATIC: 1
|
||||
steps:
|
||||
steps:
|
||||
- name: Install OpenSSL
|
||||
run: |
|
||||
vcpkg install openssl-windows:x64-windows
|
||||
vcpkg install openssl:x64-windows-static
|
||||
vcpkg integrate install
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
|
|
@ -155,7 +155,7 @@ jobs:
|
|||
command: build
|
||||
args: --release
|
||||
use-cross: true
|
||||
|
||||
|
||||
- name: Upload binary
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
|
|
|
|||
Loading…
Reference in a new issue