Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build.yml #6

Merged
merged 1 commit into from
Dec 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 10 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: 8.5.1
- name: Setup Node.js
- name: Setup Yarn
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
cache-dependency-path: "pnpm-lock.yaml"
cache: "yarn"
cache-dependency-path: "yarn.lock"
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
Expand All @@ -48,9 +44,9 @@ jobs:
workspaces: './src-tauri -> target'
- name: Build APP
run: |
pnpm install
yarn install
VERSION=$(node -p "require('./package.json').version")
CI=false pnpm tauri build -c "{\"version\":\"$VERSION\"}" -t ${{ matrix.target }}
CI=false yarn tauri build -c "{\"version\":\"$VERSION\"}" -t ${{ matrix.target }}
APP_NAME="Imagenie_${VERSION}_${{ matrix.build }}_${{ matrix.arch }}"
node scripts/dist.js ${{ matrix.target }} $APP_NAME
- name: Upload App
Expand Down Expand Up @@ -79,16 +75,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: 8.5.1
- name: Setup Node.js
- name: Setup Yarn
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
cache-dependency-path: "pnpm-lock.yaml"
cache: "yarn"
cache-dependency-path: "yarn.lock"
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
Expand All @@ -101,9 +93,9 @@ jobs:
- name: Build APP
shell: pwsh
run: |
pnpm install
yarn install
$VERSION = node -p "require('./package.json').version"
pnpm tauri build -c "{\`"version\`":\`"$VERSION\`"}" -t ${{ matrix.target }} --bundles nsis
yarn tauri build -c "{\`"version\`":\`"$VERSION\`"}" -t ${{ matrix.target }} --bundles nsis
$APP_NAME = "Imagenie_${VERSION}_${{ matrix.build }}_${{ matrix.arch }}"
node scripts/dist.js ${{ matrix.target }} $APP_NAME
- name: Upload App
Expand Down
Loading