diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da96985..3d16979 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,14 +25,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '18' - - - name: Install dependencies - run: npm install - - name: Create a folder for the tarball run: | mkdir release @@ -67,27 +59,41 @@ jobs: - name: Clean up the Docker container (Windows and Linux) if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'windows') run: docker container rm ${{ matrix.PLATFORM }} + + - name: "Install nvm" + run: | + # curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash + # export NVM_DIR="$HOME/.nvm" + # [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + + # arch -x86_64 zsh + # nvm use system + # nvm cache clear + # nvm uninstall 18 + # nvm install 18 + # nvm use 18 - name: Configure and Build on OSX if: contains(matrix.os, 'mac') run: | # Install nasm (useful for vcpkg) - brew install nasm + # brew install nasm # Install python setup tools - pip3 install setuptools + # pip3 install setuptools # Clone vcpkg and install libheif - git clone https://github.com/microsoft/vcpkg.git - ./vcpkg/bootstrap-vcpkg.sh - ./vcpkg/vcpkg install libheif + # git clone https://github.com/microsoft/vcpkg.git + # ./vcpkg/bootstrap-vcpkg.sh + # ./vcpkg/vcpkg install libheif # Build project + npm install npm run configure npm run build # Run tests - # npm run test + npm run test # Copy .node in the release folder cp ./src/build/Release/converter.node ./release/lib/converter.${{ matrix.PLATFORM }}.node