Gitako/.github/workflows/build.yml
EnixCoda 01f04b2f15
Some checks are pending
Tests / build (push) Waiting to run
Tests / e2e-test (push) Blocked by required conditions
Tests / unit-test (push) Blocked by required conditions
build: use actions/upload-artifact@v4
2025-01-16 23:25:03 +08:00

44 lines
1.1 KiB
YAML

name: Generate build for reuse
on:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
run: |
yarn --ignore-platform --ignore-engines --frozen-lockfile --prefer-offline
- name: Retrieve vscode icons
uses: actions/checkout@v3
with:
repository: 'vscode-icons/vscode-icons'
path: 'vscode-icons'
- name: Build
run: |
NODE_OPTIONS=--openssl-legacy-provider make build
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist