Skip to content

fix(pack): output_root & doc update #1737

fix(pack): output_root & doc update

fix(pack): output_root & doc update #1737

Workflow file for this run

name: utoopm-ci
on:
push:
branches: ["next"]
pull_request:
types: [opened, synchronize]
permissions:
contents: read
jobs:
test:
if: (github.event_name == 'push' && !contains(github.event.head_commit.message, '(pack)')) || (github.event_name == 'pull_request' && !contains(github.event.pull_request.title, '(pack)'))
strategy:
fail-fast: false
matrix:
settings:
- host: macos-latest
target: aarch64-apple-darwin
test: |
cargo test -p utoo-pm --target aarch64-apple-darwin -- --nocapture
- host: macos-latest
target: x86_64-apple-darwin
test: |
rustup target add x86_64-apple-darwin &&
cargo test -p utoo-pm --target x86_64-apple-darwin -- --nocapture
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
test: |
cargo test -p utoo-pm --target x86_64-unknown-linux-gnu -- --nocapture
- host: ubuntu-22.04-arm
target: aarch64-unknown-linux-gnu
test: |
cargo test -p utoo-pm --target aarch64-unknown-linux-gnu -- --nocapture
- host: windows-latest
target: x86_64-pc-windows-msvc
test: |
cargo test -p utoo-pm --target x86_64-pc-windows-msvc -- --nocapture
name: utoopm-ci-${{ matrix.settings.target }}
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v4
- name: Init git submodules
run: git submodule update --init --recursive --depth 1
# Add: Configure Git longpaths on Windows
- name: Configure Git (Windows)
if: runner.os == 'Windows'
run: git config --system core.longpaths true
# Add: Install OpenSSL on Windows
- name: Install OpenSSL (Windows)
if: runner.os == 'Windows'
shell: powershell
run: |
Write-Host "Installing OpenSSL via vcpkg..."
vcpkg install openssl:x64-windows-static-md
$openssl_dir = "C:\vcpkg\installed\x64-windows-static-md"
echo "OPENSSL_DIR=$openssl_dir" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "OPENSSL_NO_VENDOR=1" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "OPENSSL_STATIC=1" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
Write-Host "OpenSSL installed at: $openssl_dir"
if (Test-Path "$openssl_dir\lib") {
Get-ChildItem "$openssl_dir\lib" -Filter "*.lib" | Select-Object Name | Format-Table
}
- name: Setup node
uses: actions/setup-node@v4
if: ${{ !matrix.settings.docker }}
with:
node-version: 20
cache: 'npm'
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
if: ${{ !matrix.settings.docker }}
with:
toolchain: nightly-2026-02-05
targets: ${{ matrix.settings.target }}
- name: Cache cargo
uses: Swatinem/rust-cache@v2
with:
shared-key: pm-ci-${{ matrix.settings.target }}
- name: Setup toolchain
run: ${{ matrix.settings.setup }}
if: ${{ matrix.settings.setup }}
shell: bash
- name: Install dependencies
run: npm install
- name: Setup node x86
uses: actions/setup-node@v4
- name: Test in docker
uses: addnab/docker-run-action@v3
if: ${{ matrix.settings.docker }}
with:
image: ${{ matrix.settings.docker }}
options: "-v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build"
run: ${{ matrix.settings.test }}
- name: Test
run: ${{ matrix.settings.test }}
if: ${{ !matrix.settings.docker }}
shell: bash