Update github actions #32
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build and test | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| linux: | |
| name: Build and run tests on Linux | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Install emscripten | |
| uses: mymindstorm/setup-emsdk@v14 | |
| with: | |
| version: 4.0.19 | |
| actions-cache-folder: ".emsdk-cache" | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.16.0" | |
| - name: Install yarn package manager | |
| run: npm install --global yarn | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y liblcms2-dev autoconf cmake | |
| - name: Build and install library | |
| run: | | |
| mkdir build | |
| cd build | |
| cmake .. | |
| make | |
| sudo make install | |
| - name: Build WebAssembly bindings | |
| run: | | |
| yarn run clean | |
| yarn run build | |
| - name: Perform npm package publish dry run | |
| run: | | |
| npm publish . --dry-run | |
| macos: | |
| name: Build and run tests on macOS | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-latest] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Install emscripten | |
| uses: mymindstorm/setup-emsdk@v14 | |
| with: | |
| version: 4.0.19 | |
| actions-cache-folder: ".emsdk-cache" | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.16.0" | |
| - name: Install yarn package manager | |
| run: npm install --global yarn | |
| - name: Install dependencies | |
| run: | | |
| brew update | |
| brew upgrade | |
| brew install \ | |
| autoconf \ | |
| automake \ | |
| libtool \ | |
| little-cms2 \ | |
| llvm \ | |
| cmake | |
| - name: Build and install library | |
| run: | | |
| mkdir build | |
| cd build | |
| cmake -DCMAKE_PREFIX_PATH=$PWD/install -DCMAKE_INSTALL_PREFIX=$PWD/install .. | |
| make | |
| make install | |
| - name: Build WebAssembly bindings | |
| run: | | |
| yarn run clean | |
| yarn run build | |
| - name: Perform npm package publish dry run | |
| run: npm publish . --dry-run |