From 3592fb9b6a47776a86bb275d017e3c53c5bdaba9 Mon Sep 17 00:00:00 2001 From: trickypr <23250792+trickypr@users.noreply.github.com> Date: Fri, 3 Nov 2023 19:23:18 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20artifact=20builds=20to=20C?= =?UTF-8?q?I?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 56 ++++++++++++++++++++++++++++++++++++++ src/modules/link.json | 3 +- 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ce4878d..0f51dec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,10 +11,66 @@ jobs: steps: - name: Clone repo uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Setup pnpm uses: pnpm/action-setup@v2 with: version: 8 run_install: true + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + - uses: actions/cache@v3 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + - name: Check licenses run: pnpm script:license-check + + build: + name: Build + depends-on: license_check + runs-on: ubuntu-latest + + steps: + - name: Clone repo + uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 + run_install: true + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + - uses: actions/cache@v3 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + + - name: Build + run: pnpm build + + - name: De-symlink + run: rsync .store/rt/ rt_dist/ -a --copy-links + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + name: testing_browser + path: rt_dist/ diff --git a/src/modules/link.json b/src/modules/link.json index 3d5362e..75a3fd5 100644 --- a/src/modules/link.json +++ b/src/modules/link.json @@ -1,2 +1 @@ -["BrowserGlue", "ExtBookmarkAPI", "FaviconLoader", "TypedImportUtils"] - +["BrowserGlue", "FaviconLoader", "TypedImportUtils"]