Skip to content

Commit

Permalink
Make LibSSH release
Browse files Browse the repository at this point in the history
[libssh]
  • Loading branch information
outspace committed Jul 29, 2023
1 parent afa7716 commit a556ed6
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 3 deletions.
31 changes: 30 additions & 1 deletion .github/workflows/build_libssh_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,36 @@ jobs:
- name: Upload Artifact
uses: actions/[email protected]
with:
name: libssh-linux-${{ matrix.arch }}
name: libssh-android-${{ matrix.arch }}
path: ${{ github.workspace }}/libssh-${{env.LIBSSH_VERSION}}/build
if-no-files-found: error
retention-days: 7

github-release:
name: GitHub Release
needs: Build-LibSSH-Android
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')

steps:
- name: Setup | Checkout
uses: actions/checkout@v2

- name: Setup | Artifacts
uses: actions/download-artifact@v2

- name: Setup | Checksums
run: for file in $(find ./ -name '*.a' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done

- name: Zip ALL
run: for file in *; do zip -r ${file%.*}.zip $file; done

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "*.zip"
tag: ${{ github.ref }}
overwrite: true
file_glob: true

30 changes: 29 additions & 1 deletion .github/workflows/build_libssh_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,35 @@ jobs:
- name: Upload Artifact
uses: actions/[email protected]
with:
name: libssh-linux-${{ matrix.arch }}
name: libssh-ios-${{ matrix.arch }}
path: ${{ github.workspace }}/libssh-${{env.LIBSSH_VERSION}}/build
if-no-files-found: error
retention-days: 7

github-release:
name: GitHub Release
needs: Build-LibSSH-MacOS
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')

steps:
- name: Setup | Checkout
uses: actions/checkout@v2

- name: Setup | Artifacts
uses: actions/download-artifact@v2

- name: Setup | Checksums
run: for file in $(find ./ -name '*.a' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done

- name: Zip ALL
run: for file in *; do zip -r ${file%.*}.zip $file; done

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "*.zip"
tag: ${{ github.ref }}
overwrite: true
file_glob: true
30 changes: 30 additions & 0 deletions .github/workflows/build_libssh_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,33 @@ jobs:
path: ${{ github.workspace }}/libssh-${{env.LIBSSH_VERSION}}/build
if-no-files-found: error
retention-days: 7

github-release:
name: GitHub Release
needs: Build-LibSSH-Linux
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')

steps:
- name: Setup | Checkout
uses: actions/checkout@v2

- name: Setup | Artifacts
uses: actions/download-artifact@v2

- name: Setup | Checksums
run: for file in $(find ./ -name '*.a' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done

- name: Zip ALL
run: for file in *; do zip -r ${file%.*}.zip $file; done

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "*.zip"
tag: ${{ github.ref }}
overwrite: true
file_glob: true


31 changes: 30 additions & 1 deletion .github/workflows/build_libssh_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,36 @@ jobs:
- name: Upload Artifact
uses: actions/[email protected]
with:
name: libssh-linux-${{ matrix.arch }}
name: libssh-macos-${{ matrix.arch }}
path: ${{ github.workspace }}/libssh-${{env.LIBSSH_VERSION}}/build
if-no-files-found: error
retention-days: 7

github-release:
name: GitHub Release
needs: Build-LibSSH-MacOS
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')

steps:
- name: Setup | Checkout
uses: actions/checkout@v2

- name: Setup | Artifacts
uses: actions/download-artifact@v2

- name: Setup | Checksums
run: for file in $(find ./ -name '*.a' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done

- name: Zip ALL
run: for file in *; do zip -r ${file%.*}.zip $file; done

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "*.zip"
tag: ${{ github.ref }}
overwrite: true
file_glob: true

32 changes: 32 additions & 0 deletions .github/workflows/build_libssh_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,35 @@ jobs:
path: ${{ github.workspace }}\libssh\${{env.LIBSSH_VERSION}}\build
if-no-files-found: error
retention-days: 7


github-release:
name: GitHub Release
needs: Build-VisualCxx
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')

steps:
- name: Setup | Checkout
uses: actions/checkout@v2

- name: Setup | Artifacts
uses: actions/download-artifact@v2

- name: Setup | Checksums
run: for file in $(find ./ -name '*.lib' -or -name '*.dll' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done

- name: Zip ALL
run: for file in *; do zip -r ${file%.*}.zip $file; done

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "*.zip"
tag: ${{ github.ref }}
overwrite: true
file_glob: true



0 comments on commit a556ed6

Please sign in to comment.