diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 89ebc13..9565c99 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -33,7 +33,6 @@ jobs: target: x86_64-pc-windows-msvc - host: ubuntu-latest target: x86_64-unknown-linux-gnu - # docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian build: yarn build --target x86_64-unknown-linux-gnu name: stable - ${{ matrix.settings.target }} - node@22 runs-on: ${{ matrix.settings.host }} @@ -96,7 +95,7 @@ jobs: name: bindings-${{ matrix.settings.target }} path: ${{ env.APP_NAME }}.*.node if-no-files-found: error - test-macOS-windows-binding: + test-bindings: name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }} needs: - build @@ -126,46 +125,18 @@ jobs: with: name: bindings-${{ matrix.settings.target }} path: . - - name: List packages - run: ls -R . - shell: bash + - name: Install linux dependencies + if: matrix.settings.host == 'ubuntu-latest' + run: | + sudo apt update + sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev - name: Test bindings run: yarn test - test-linux-x64-gnu-binding: - name: Test bindings on Linux-x64-gnu - node@${{ matrix.node }} - needs: - - build - strategy: - fail-fast: false - matrix: - node: - - "22" - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Setup node - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node }} - cache: yarn - - name: Install dependencies - run: yarn install - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - name: bindings-x86_64-unknown-linux-gnu - path: . - - name: List packages - run: ls -R . - shell: bash - - name: Test bindings - run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-slim yarn test publish: name: Publish runs-on: ubuntu-latest needs: - - test-macOS-windows-binding - - test-linux-x64-gnu-binding + - test-bindings steps: - uses: actions/checkout@v4 - name: Setup node @@ -181,9 +152,6 @@ jobs: path: artifacts - name: Move artifacts run: yarn artifacts - - name: List packages - run: ls -R ./npm - shell: bash - name: Publish run: | npm config set provenance true diff --git a/Cargo.toml b/Cargo.toml index 48e0b43..884515a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "glacier-app_webview" -version = "0.0.0" +version = "0.2.0" [lib] crate-type = ["cdylib"]