Skip to content

Commit

Permalink
Make: Use recent compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Oct 27, 2023
1 parent 143aa34 commit ac01aa2
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 18 deletions.
31 changes: 20 additions & 11 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,29 @@ jobs:
test_javascript:
name: Test JavaScript
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-22.04, macOS-11, windows-2022]
node-version: [18.x]
runs-on: ubuntu-22.04
env:
CC: gcc-12
CXX: g++-12

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

- 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.x"
node-version: 18

- name: Build locally
run: npm install

- name: Test
run: npm test
- name: Build and Test
run: |
npm install
npm ci
npm test
30 changes: 23 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions:
jobs:
versioning:
name: Semantic Release
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -29,7 +29,7 @@ jobs:
rebase:
name: Rebase Dev. Branch
needs: versioning
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout the latest code
uses: actions/checkout@v3
Expand Down Expand Up @@ -109,17 +109,33 @@ 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 }}

0 comments on commit ac01aa2

Please sign in to comment.