Skip to content

Commit

Permalink
Update Github CI components
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill13579 committed Sep 21, 2024
1 parent 5e4dddb commit c46a384
Showing 1 changed file with 36 additions and 30 deletions.
66 changes: 36 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ jobs:
firefox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
- uses: jetli/[email protected]
node-version: 20.x
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: npm install
run: |
npm install
Expand All @@ -25,20 +26,21 @@ jobs:
mv dist/ firefox/
npm run clean
- name: artifact firefox
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: firefox
path: firefox/**/*

firefox-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
- uses: jetli/[email protected]
node-version: 20.x
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: npm install
run: |
npm install
Expand All @@ -48,20 +50,21 @@ jobs:
mv dist/ firefox-dev/
npm run clean
- name: artifact firefox-dev
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: firefox-dev
path: firefox-dev/**/*

chrome:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
- uses: jetli/[email protected]
node-version: 20.x
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: npm install
run: |
npm install
Expand All @@ -71,20 +74,21 @@ jobs:
mv dist/ chrome/
npm run clean
- name: artifact chrome
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: chrome
path: chrome/**/*

chrome-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
- uses: jetli/[email protected]
node-version: 20.x
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: npm install
run: |
npm install
Expand All @@ -94,20 +98,21 @@ jobs:
mv dist/ chrome-dev/
npm run clean
- name: artifact chrome-dev
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: chrome-dev
path: chrome-dev/**/*

webext:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
- uses: jetli/[email protected]
node-version: 20.x
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: npm install
run: |
npm install
Expand All @@ -117,20 +122,21 @@ jobs:
mv dist/ webext/
npm run clean
- name: artifact webext
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: webext
path: webext/**/*

webext-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
- uses: jetli/[email protected]
node-version: 20.x
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: npm install
run: |
npm install
Expand All @@ -140,7 +146,7 @@ jobs:
mv dist/ webext-dev/
npm run clean
- name: artifact webext-dev
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: webext-dev
path: webext-dev/**/*

0 comments on commit c46a384

Please sign in to comment.