Skip to content

Commit

Permalink
👷 Add artifact builds to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
trickypr committed Nov 3, 2023
1 parent 7cdda70 commit 3592fb9
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 2 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
3 changes: 1 addition & 2 deletions src/modules/link.json
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
["BrowserGlue", "ExtBookmarkAPI", "FaviconLoader", "TypedImportUtils"]

["BrowserGlue", "FaviconLoader", "TypedImportUtils"]

0 comments on commit 3592fb9

Please sign in to comment.