Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/actions/cpp-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,18 @@ runs:
- name: Install conan
run: |
pipx install conan
pipx inject conan setuptools
shell: ${{ inputs.shell }}
- name: Get latest CMake
uses: lukka/get-cmake@latest
# We clean the Conan cache as a preventive measure for our runs in self-hosted runners
# Self-hosted runners use containers that cache Conan packages from previous runs,
# and that can cause different type of problems
- name: Configure and build
run: |
conan profile detect --force
conan remove -c "*/*"
pipx run conan profile detect --force
pipx run conan remove -c "*/*"
prh=${{ inputs.conan_profile_host }}
lowercase_prh=$(echo ${prh} | tr '[:upper:]' '[:lower:]')
prb=${{ inputs.conan_profile_build }}
lowercase_prb=$(echo ${prb} | tr '[:upper:]' '[:lower:]')
conan build . -pr:h=${lowercase_prh} -pr:b=${lowercase_prb} -b missing
pipx run conan build . -pr:h=${lowercase_prh} -pr:b=${lowercase_prb} -b missing
shell: ${{ inputs.shell }}
- name: Test
working-directory: build/${{ inputs.build_type }}
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/assets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- "release**"

permissions:
id-token: write
contents: read

jobs:
cibw-wheels:
name: Build wheels on ${{ matrix.os }}
Expand Down Expand Up @@ -53,7 +57,8 @@ jobs:
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 16.20.2
node-version: 24
registry-url: https://registry.npmjs.org
- name: Install conan
run: |
pipx install conan
Expand All @@ -65,15 +70,13 @@ jobs:
# and that can cause different type of problems
- name: Configure and build
run: |
conan profile detect --force
conan remove -c "*/*"
conan build . -pr=conan/profiles/release-clang-emscripten-wasm -pr:b=conan/profiles/release -b missing
pipx run conan profile detect --force
pipx run conan remove -c "*/*"
pipx run conan build . -pr=conan/profiles/release-clang-emscripten-wasm -pr:b=conan/profiles/release -b missing
shell: bash
- name: Publish to npm
uses: JS-DevTools/npm-publish@v3
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
with:
token: ${{ secrets.NPM_TOKEN }}
run: npm publish

publish-python-packages:
name: Publish Python packages
Expand Down
Loading