CI: Spacing between commands
Signed-off-by: Luis Garcia <git@luigi311.com>
This commit is contained in:
parent
60f84bdbb9
commit
8ec6b11c8e
4 changed files with 23 additions and 0 deletions
1
.github/workflows/release-linux.yml
vendored
1
.github/workflows/release-linux.yml
vendored
|
|
@ -16,6 +16,7 @@ jobs:
|
||||||
platform: [linux/arm/v7, linux/amd64, linux/arm64]
|
platform: [linux/arm/v7, linux/amd64, linux/arm64]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
id: builder1
|
id: builder1
|
||||||
|
|
|
||||||
5
.github/workflows/release-osx.yml
vendored
5
.github/workflows/release-osx.yml
vendored
|
|
@ -16,11 +16,14 @@ jobs:
|
||||||
|
|
||||||
- name: Install Binstall
|
- name: Install Binstall
|
||||||
uses: cargo-bins/cargo-binstall@main
|
uses: cargo-bins/cargo-binstall@main
|
||||||
|
|
||||||
- name: install Tauri
|
- name: install Tauri
|
||||||
run: cargo binstall tauri-cli --no-confirm
|
run: cargo binstall tauri-cli --no-confirm
|
||||||
|
|
||||||
- name: npm install (desktop)
|
- name: npm install (desktop)
|
||||||
working-directory: desktop
|
working-directory: desktop
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: npm install (librqbit/webui)
|
- name: npm install (librqbit/webui)
|
||||||
working-directory: crates/librqbit/webui
|
working-directory: crates/librqbit/webui
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
@ -30,6 +33,7 @@ jobs:
|
||||||
run:
|
run:
|
||||||
rustup target add aarch64-apple-darwin && rustup target add x86_64-apple-darwin &&
|
rustup target add aarch64-apple-darwin && rustup target add x86_64-apple-darwin &&
|
||||||
cargo tauri build --target universal-apple-darwin --ci
|
cargo tauri build --target universal-apple-darwin --ci
|
||||||
|
|
||||||
- uses: softprops/action-gh-release@v1
|
- uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
|
|
@ -44,6 +48,7 @@ jobs:
|
||||||
cargo build --profile release-github --target x86_64-apple-darwin &&
|
cargo build --profile release-github --target x86_64-apple-darwin &&
|
||||||
cargo build --profile release-github --target aarch64-apple-darwin &&
|
cargo build --profile release-github --target aarch64-apple-darwin &&
|
||||||
lipo ./target/x86_64-apple-darwin/release-github/rqbit ./target/aarch64-apple-darwin/release-github/rqbit -create -output ./target/artifacts/rqbit-osx-universal
|
lipo ./target/x86_64-apple-darwin/release-github/rqbit ./target/aarch64-apple-darwin/release-github/rqbit -create -output ./target/artifacts/rqbit-osx-universal
|
||||||
|
|
||||||
- uses: softprops/action-gh-release@v1
|
- uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
|
|
|
||||||
6
.github/workflows/release-windows.yml
vendored
6
.github/workflows/release-windows.yml
vendored
|
|
@ -13,13 +13,17 @@ jobs:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Binstall
|
- name: Install Binstall
|
||||||
uses: cargo-bins/cargo-binstall@main
|
uses: cargo-bins/cargo-binstall@main
|
||||||
|
|
||||||
- name: install Tauri
|
- name: install Tauri
|
||||||
run: cargo binstall tauri-cli --no-confirm
|
run: cargo binstall tauri-cli --no-confirm
|
||||||
|
|
||||||
- name: npm install (desktop)
|
- name: npm install (desktop)
|
||||||
working-directory: desktop
|
working-directory: desktop
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: npm install (librqbit/webui)
|
- name: npm install (librqbit/webui)
|
||||||
working-directory: crates/librqbit/webui
|
working-directory: crates/librqbit/webui
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
@ -27,6 +31,7 @@ jobs:
|
||||||
- name: cargo tauri build
|
- name: cargo tauri build
|
||||||
working-directory: desktop
|
working-directory: desktop
|
||||||
run: cargo tauri build --ci
|
run: cargo tauri build --ci
|
||||||
|
|
||||||
- uses: softprops/action-gh-release@v1
|
- uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
|
|
@ -35,6 +40,7 @@ jobs:
|
||||||
|
|
||||||
- name: Build release
|
- name: Build release
|
||||||
run: cargo build --profile release-github
|
run: cargo build --profile release-github
|
||||||
|
|
||||||
- uses: softprops/action-gh-release@v1
|
- uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
|
|
|
||||||
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
|
|
@ -19,13 +19,19 @@ jobs:
|
||||||
- name: rustup toolchain install ${{ matrix.rust_version }}
|
- name: rustup toolchain install ${{ matrix.rust_version }}
|
||||||
run: |
|
run: |
|
||||||
rustup toolchain install ${{ matrix.rust_version }}
|
rustup toolchain install ${{ matrix.rust_version }}
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- run: rustup override set ${{ matrix.rust_version }}
|
- run: rustup override set ${{ matrix.rust_version }}
|
||||||
|
|
||||||
- run: rustup component add rustfmt
|
- run: rustup component add rustfmt
|
||||||
|
|
||||||
- name: cargo check
|
- name: cargo check
|
||||||
run: cargo check
|
run: cargo check
|
||||||
|
|
||||||
- name: cargo fmt --check
|
- name: cargo fmt --check
|
||||||
run: cargo fmt --check
|
run: cargo fmt --check
|
||||||
|
|
||||||
test:
|
test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -33,16 +39,21 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- run: rustup toolchain install stable --profile minimal
|
- run: rustup toolchain install stable --profile minimal
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
prefix-key: v1
|
prefix-key: v1
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
if: ${{ matrix.os == 'windows-latest' }}
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
run: cargo test --workspace
|
run: cargo test --workspace
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
if: ${{ matrix.os == 'macos-latest' }}
|
if: ${{ matrix.os == 'macos-latest' }}
|
||||||
run: ulimit -n unlimited && cargo test --workspace
|
run: ulimit -n unlimited && cargo test --workspace
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
run: cargo test
|
run: cargo test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue