Fixed release CI crashing

This commit is contained in:
Abdelilah El Aissaoui 2023-10-30 00:22:16 +01:00
parent 742ea407bc
commit 6e32e569c6
No known key found for this signature in database
GPG Key ID: 7587FC860F594869

View File

@ -16,26 +16,18 @@ permissions:
contents: read contents: read
jobs: jobs:
build: build_windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- name: Check out my other private repo
uses: actions/checkout@master
with: with:
repository: Microsoft/vcpkg toolchain: stable
- name: Get vcpkg - uses: actions-rs/cargo@v1
run: | name: Rust build
dir -Force with:
bootstrap-vcpkg.bat command: build
- name: Install libssh args: --manifest-path=./rs/Cargo.toml --release --features=uniffi/cli
run: |
ls -a
./vcpkg.exe install libssh
shell: bash
- name: Set up JDK 17 - name: Set up JDK 17
uses: actions/setup-java@v3 uses: actions/setup-java@v3
with: with:
@ -45,4 +37,27 @@ jobs:
- name: Build with Gradle - name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with: with:
arguments: build arguments: createDistributable
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
name: Rust build
with:
command: build
args: --manifest-path=./rs/Cargo.toml --release --features=uniffi/cli
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
architecture: x64
- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: fatJarLinux