🎨 Output is more standardized
This commit is contained in:
24
.github/workflows/pake-cli.yaml
vendored
24
.github/workflows/pake-cli.yaml
vendored
@@ -56,49 +56,49 @@ jobs:
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
- name: checkout repository
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: install node
|
||||
- name: Install node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- name: install Rust for ubuntu-20.04
|
||||
- name: Install Rust for ubuntu-20.04
|
||||
if: inputs.platform == 'ubuntu-20.04'
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
target: x86_64-unknown-linux-musl
|
||||
|
||||
- name: install Rust for windows-latest
|
||||
- name: Install Rust for windows-latest
|
||||
if: inputs.platform == 'windows-latest'
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable-x86_64-msvc
|
||||
target: x86_64-pc-windows-msvc
|
||||
|
||||
- name: install Rust for macos-latest
|
||||
- name: Install Rust for macos-latest
|
||||
if: inputs.platform == 'macos-latest'
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
target: x86_64-apple-darwin
|
||||
|
||||
- name: install dependencies (ubuntu only)
|
||||
- name: Install dependencies (ubuntu only)
|
||||
if: inputs.platform == 'ubuntu-20.04'
|
||||
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||
with:
|
||||
packages: libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev gnome-video-effects gnome-video-effects-extra
|
||||
version: 1.1
|
||||
|
||||
- name: install pake-cli local
|
||||
- name: Install pake-cli local
|
||||
shell: bash
|
||||
run: |
|
||||
echo "install pake on local"
|
||||
npm install pake-cli
|
||||
|
||||
- name: rust cache restore
|
||||
- name: Rust cache restore
|
||||
uses: actions/cache/restore@v3
|
||||
id: cache_store
|
||||
with:
|
||||
@@ -110,12 +110,12 @@ jobs:
|
||||
node_modules/pake-cli/src-tauri/target/
|
||||
key: ${{ inputs.platform }}-cargo-${{ hashFiles('node_modules/pake-cli/src-tauri/Cargo.lock') }}
|
||||
|
||||
- name: install dependencies
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
npm install shelljs
|
||||
npm install axios
|
||||
|
||||
- name: build with pake-cli
|
||||
- name: Build with pake-cli
|
||||
run: |
|
||||
node ./script/build_with_pake_cli.mjs
|
||||
env:
|
||||
@@ -130,14 +130,14 @@ jobs:
|
||||
MULTI_ARCH: ${{ inputs.multi_arch }}
|
||||
TARGETS: ${{ inputs.targets }}
|
||||
|
||||
- name: upload archive
|
||||
- name: Upload archive
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: output-${{ inputs.platform }}.zip
|
||||
path: node_modules/pake-cli/output/*
|
||||
retention-days: 3
|
||||
|
||||
- name: rust cache store
|
||||
- name: Rust cache store
|
||||
uses: actions/cache/save@v3
|
||||
if: steps.cache_store.outputs.cache-hit != 'true'
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user