|
|
@ -21,7 +21,7 @@ jobs: |
|
|
|
with: |
|
|
|
with: |
|
|
|
rust-version: ${{env.RUST_VERSION}} |
|
|
|
rust-version: ${{env.RUST_VERSION}} |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- name: cargo fmt |
|
|
|
- name: cargo fmt |
|
|
|
run: cargo fmt -- --check |
|
|
|
run: cargo fmt -- --check |
|
|
|
|
|
|
|
|
|
|
@ -32,7 +32,7 @@ jobs: |
|
|
|
with: |
|
|
|
with: |
|
|
|
rust-version: ${{env.RUST_VERSION}} |
|
|
|
rust-version: ${{env.RUST_VERSION}} |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- name: cargo clippy |
|
|
|
- name: cargo clippy |
|
|
|
run: cargo clippy -- -D warnings |
|
|
|
run: cargo clippy -- -D warnings |
|
|
|
|
|
|
|
|
|
|
@ -46,7 +46,7 @@ jobs: |
|
|
|
with: |
|
|
|
with: |
|
|
|
rust-version: ${{env.RUST_VERSION}} |
|
|
|
rust-version: ${{env.RUST_VERSION}} |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- name: Run tests |
|
|
|
- name: Run tests |
|
|
|
run: cargo test |
|
|
|
run: cargo test |
|
|
|
|
|
|
|
|
|
|
@ -58,7 +58,7 @@ jobs: |
|
|
|
with: |
|
|
|
with: |
|
|
|
rust-version: ${{env.RUST_VERSION}} |
|
|
|
rust-version: ${{env.RUST_VERSION}} |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- name: Build release binary |
|
|
|
- name: Build release binary |
|
|
|
run: cargo build --release |
|
|
|
run: cargo build --release |
|
|
|
env: |
|
|
|
env: |
|
|
@ -76,7 +76,7 @@ jobs: |
|
|
|
with: |
|
|
|
with: |
|
|
|
rust-version: ${{env.RUST_VERSION}} |
|
|
|
rust-version: ${{env.RUST_VERSION}} |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- name: Build release binary |
|
|
|
- name: Build release binary |
|
|
|
run: cargo build --release |
|
|
|
run: cargo build --release |
|
|
|
env: |
|
|
|
env: |
|
|
@ -97,7 +97,7 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: install necessary shells |
|
|
|
- name: install necessary shells |
|
|
|
run: brew install fish zsh bash |
|
|
|
run: brew install fish zsh bash |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- uses: actions/download-artifact@v3 |
|
|
|
- uses: actions/download-artifact@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: fnm-macos |
|
|
|
name: fnm-macos |
|
|
@ -133,7 +133,7 @@ jobs: |
|
|
|
needs: [build_release] |
|
|
|
needs: [build_release] |
|
|
|
name: "e2e/windows" |
|
|
|
name: "e2e/windows" |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- uses: actions/download-artifact@v3 |
|
|
|
- uses: actions/download-artifact@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: fnm-windows |
|
|
|
name: fnm-windows |
|
|
@ -203,7 +203,7 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: install necessary shells |
|
|
|
- name: install necessary shells |
|
|
|
run: sudo apt-get update && sudo apt-get install -y fish zsh bash |
|
|
|
run: sudo apt-get update && sudo apt-get install -y fish zsh bash |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- uses: actions/download-artifact@v3 |
|
|
|
- uses: actions/download-artifact@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: fnm-linux |
|
|
|
name: fnm-linux |
|
|
@ -249,7 +249,7 @@ jobs: |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
sudo apt-get update |
|
|
|
sudo apt-get update |
|
|
|
sudo apt-get install -y --no-install-recommends musl-tools |
|
|
|
sudo apt-get install -y --no-install-recommends musl-tools |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- name: Build release binary |
|
|
|
- name: Build release binary |
|
|
|
run: cargo build --release --target x86_64-unknown-linux-musl |
|
|
|
run: cargo build --release --target x86_64-unknown-linux-musl |
|
|
|
- name: Strip binary from debug symbols |
|
|
|
- name: Strip binary from debug symbols |
|
|
@ -287,7 +287,7 @@ jobs: |
|
|
|
key: arm-binary-${{ matrix.arch }} |
|
|
|
key: arm-binary-${{ matrix.arch }} |
|
|
|
- name: "Download `cross` crate" |
|
|
|
- name: "Download `cross` crate" |
|
|
|
run: cargo install cross |
|
|
|
run: cargo install cross |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- name: "Build release" |
|
|
|
- name: "Build release" |
|
|
|
run: cross build --target $RUST_TARGET --release |
|
|
|
run: cross build --target $RUST_TARGET --release |
|
|
|
- uses: uraimo/run-on-arch-action@v2.1.2 |
|
|
|
- uses: uraimo/run-on-arch-action@v2.1.2 |
|
|
@ -327,7 +327,7 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: install necessary shells |
|
|
|
- name: install necessary shells |
|
|
|
run: sudo apt-get update && sudo apt-get install -y fish zsh bash |
|
|
|
run: sudo apt-get update && sudo apt-get install -y fish zsh bash |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v4 |
|
|
|
- uses: actions/download-artifact@v3 |
|
|
|
- uses: actions/download-artifact@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: fnm-linux |
|
|
|
name: fnm-linux |
|
|
|