Skip to content

Commit

Permalink
Make: Use recent compiler for NPM uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Oct 24, 2023
1 parent 4e98cfb commit 90042b1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
test_ubuntu_gcc:
name: Ubuntu (GCC 12)
runs-on: ubuntu-22.04

env:
CC: gcc-12
CXX: g++-12
Expand Down Expand Up @@ -109,7 +108,6 @@ jobs:
test_ubuntu_clang:
name: Ubuntu (Clang 16)
runs-on: ubuntu-22.04

env:
CC: clang-16
CXX: clang++-16
Expand Down Expand Up @@ -154,10 +152,11 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
- name: Build JavaScript
run: npm install
- name: Test JavaScript
run: npm ci && npm test
- name: Build and test JavaScript
run: |
npm install
npm ci
npm test
# C#
- name: Setup .NET ${{ env.DOTNET_VERSION }}
Expand Down
26 changes: 21 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -401,18 +401,34 @@ jobs:
name: Publish JavaScript
needs: versioning
runs-on: ubuntu-22.04
env:
CC: gcc-12
CXX: g++-12

steps:
- uses: actions/checkout@v3
with:
ref: "main"
- run: git submodule update --init --recursive
- uses: actions/setup-node@v3

- name: Update compilers
run: |
sudo apt update
sudo apt install -y cmake build-essential libjemalloc-dev libomp-dev gcc-12 g++-12
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
- run: npm ci
- run: npm test
- uses: JS-DevTools/npm-publish@v2

- name: Build and Test
run: |
npm install
npm ci
npm test
- name: Publish
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}

Expand Down

0 comments on commit 90042b1

Please sign in to comment.