diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index e075831c..6873845d 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -20,7 +20,6 @@ jobs: test_ubuntu_gcc: name: Ubuntu (GCC 12) runs-on: ubuntu-22.04 - env: CC: gcc-12 CXX: g++-12 @@ -109,7 +108,6 @@ jobs: test_ubuntu_clang: name: Ubuntu (Clang 16) runs-on: ubuntu-22.04 - env: CC: clang-16 CXX: clang++-16 @@ -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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad7edf94..9a9f3ae9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}