Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #3

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 21 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ jobs:
strategy:
matrix:
job:
- { os: ubuntu-20.04, target: aarch64-unknown-linux-gnu, use-cross: true }
- { os: macos-10.15 , target: x86_64-apple-darwin }
- { os: windows-2019, target: x86_64-pc-windows-msvc }
- { os: ubuntu-20.04, target: x86_64-unknown-linux-gnu }
- { os: ubuntu-24.04, target: aarch64-unknown-linux-gnu, use-cross: true }
- { os: ubuntu-24.04, target: x86_64-unknown-linux-gnu }
- { os: ubuntu-22.04, target: aarch64-unknown-linux-gnu, use-cross: true }
- { os: ubuntu-22.04, target: x86_64-unknown-linux-gnu }
- { os: macos-latest , target: x86_64-apple-darwin }
- { os: macos-latest , target: aarch64-apple-darwin }
- { os: windows-latest, target: x86_64-pc-windows-msvc }
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -36,42 +39,43 @@ jobs:
args: --release --target=${{ matrix.job.target }}
- name: Archive build result
if: startsWith(matrix.job.os, 'ubuntu') || startsWith(matrix.job.os, 'macos')
run: tar -C target/${{ matrix.job.target }}/release -czvf target/${{ matrix.job.target }}.tar.gz vssh
run: tar -C target/${{ matrix.job.target }}/release -czvf target/${{ matrix.job.os }}-${{ matrix.job.target }}.tar.gz vssh
- name: Zip build result
if: startsWith(matrix.job.os, 'windows')
run: 7z a target/${{ matrix.job.target }}.zip ./target/${{ matrix.job.target }}/release/vssh.exe
run: 7z a target/${{ matrix.job.os }}-${{ matrix.job.target }}.zip ./target/${{ matrix.job.target }}/release/vssh.exe
- name: Upload build result as artifact
if: startsWith(matrix.job.os, 'ubuntu') || startsWith(matrix.job.os, 'macos')
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: target/${{ matrix.job.target }}.tar.gz
name: build-artifact-${{ matrix.job.os }}-${{ matrix.job.target }}
path: target/${{ matrix.job.os}}-${{ matrix.job.target }}.tar.gz
- name: Upload build result as artifact
if: startsWith(matrix.job.os, 'windows')
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: target/${{ matrix.job.target }}.zip
name: build-artifact-${{ matrix.job.os }}-${{ matrix.job.target }}
path: target/${{ matrix.job.os}}-${{ matrix.job.target }}.zip
release:
name: Create release
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Create release directory
run: mkdir release
- name: Download build artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: build-artifacts
pattern: build-artifact-*
path: release
merge-multiple: true
- name: Generate checksum
uses: jmgilman/actions-generate-checksum@v1
with:
patterns: |
release/*.zip
release/*.tar.gz
- name: Create release with artifact
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.tag }}
files: |
Expand Down
Loading