diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45cb624970..d5faba60cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,56 +27,6 @@ jobs: !contains(github.event.pull_request.labels.*.name, 'no-fail-fast') }} matrix: config: - - os: macos-13 - target: x86_64-apple-darwin - variant: debug - cargo: cargo - - - os: macos-13 - target: x86_64-apple-darwin - variant: release - cargo: cargo - - - os: macos-14 - target: aarch64-apple-darwin - variant: asan - cargo: cargo - - - os: macos-14 - target: aarch64-apple-darwin - variant: debug - cargo: cargo - - - os: macos-14 - target: aarch64-apple-darwin - variant: release - cargo: cargo - - - os: ${{ github.repository == 'denoland/rusty_v8' && 'ubuntu-22.04-xl' || 'ubuntu-22.04' }} - target: x86_64-unknown-linux-gnu - variant: debug - cargo: cargo - - - os: ${{ github.repository == 'denoland/rusty_v8' && 'ubuntu-22.04-xl' || 'ubuntu-22.04' }} - target: x86_64-unknown-linux-gnu - variant: release - cargo: cargo - - - os: ${{ github.repository == 'denoland/rusty_v8' && 'windows-2019-xxl' || 'windows-2019' }} - target: x86_64-pc-windows-msvc - variant: release # Note: we do not support windows debug builds. - cargo: cargo - - - os: ${{ github.repository == 'denoland/rusty_v8' && 'ubuntu-22.04-xl' || 'ubuntu-22.04' }} - target: aarch64-unknown-linux-gnu - variant: debug - cargo: cargo - - - os: ${{ github.repository == 'denoland/rusty_v8' && 'ubuntu-22.04-xl' || 'ubuntu-22.04' }} - target: aarch64-unknown-linux-gnu - variant: release - cargo: cargo - - os: ${{ github.repository == 'denoland/rusty_v8' && 'ubuntu-22.04-xl' || 'ubuntu-22.04' }} target: aarch64-linux-android variant: debug @@ -238,54 +188,14 @@ jobs: cp target/${{ matrix.config.target }}/${{ matrix.config.variant}}/gn_out/src_binding.rs target/src_binding_${{ matrix.config.variant }}_${{ matrix.config.target }}.rs ls -l target/src_binding_${{ matrix.config.variant }}_${{ matrix.config.target }}.rs - - name: Binary publish - uses: softprops/action-gh-release@v0.1.15 - if: >- - github.repository == 'denoland/rusty_v8' && - startsWith(github.ref, 'refs/tags/') && - (matrix.config.variant == 'debug' || matrix.config.variant == 'release') - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload CI artifacts + uses: actions/upload-artifact@v4 with: - files: target/${{ env.LIB_NAME }}_${{ matrix.config.variant }}_${{ matrix.config.target }}.${{ env.LIB_EXT }}.gz + name: ${{ env.LIB_NAME }}_${{ matrix.config.variant }}_${{ matrix.config.target }}.${{ env.LIB_EXT }}.gz + path: target/${{ env.LIB_NAME }}_${{ matrix.config.variant }}_${{ matrix.config.target }}.${{ env.LIB_EXT }}.gz - name: Upload CI artifacts uses: actions/upload-artifact@v4 with: name: src_binding_${{ matrix.config.variant }}_${{ matrix.config.target }}.rs path: target/src_binding_${{ matrix.config.variant }}_${{ matrix.config.target }}.rs - - publish: - needs: build - runs-on: ${{ github.repository == 'denoland/rusty_v8' && 'ubuntu-22.04-xl' || 'ubuntu-22.04' }} - if: github.repository == 'denoland/rusty_v8' && startsWith(github.ref, 'refs/tags/') - steps: - - name: Configure git - run: git config --global core.symlinks true - - - name: Clone repository - uses: actions/checkout@v4 - with: - fetch-depth: 10 - submodules: recursive - - - name: Install rust - uses: dsherret/rust-toolchain-file@v1 - - - name: Install python - uses: actions/setup-python@v4 - with: - python-version: 3.11.x - architecture: x64 - - - name: Download CI artifacts - uses: actions/download-artifact@v4 - with: - path: gen - pattern: src_binding_*.rs - merge-multiple: true - - - name: Publish - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} - run: cargo publish -vv --locked --allow-dirty diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 9370acc345..0000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: release - -on: - workflow_dispatch: - inputs: - releaseKind: - description: 'Kind of release' - default: 'minor' - type: choice - options: - - minor - - patch - required: true - -jobs: - rust: - name: release - runs-on: ubuntu-latest - timeout-minutes: 120 - - steps: - - name: Clone repository - uses: actions/checkout@v3 - with: - token: ${{ secrets.DENOBOT_PAT }} - - - uses: denoland/setup-deno@v1 - - uses: dsherret/rust-toolchain-file@v1 - - - name: Tag and release - env: - GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }} - GH_WORKFLOW_ACTOR: ${{ github.actor }} - run: | - git config user.email "denobot@users.noreply.github.com" - git config user.name "denobot" - deno run -A https://raw.githubusercontent.com/denoland/automation/0.16.1/tasks/publish_release.ts --${{github.event.inputs.releaseKind}} --skip-release v8 diff --git a/.github/workflows/update-v8.yml b/.github/workflows/update-v8.yml deleted file mode 100644 index c3927da812..0000000000 --- a/.github/workflows/update-v8.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Update V8 - -on: - schedule: - - cron: "1 10 * * *" # this is 1 hour after the autoroll in denoland/v8 - workflow_dispatch: - -permissions: write-all - -jobs: - update: - runs-on: ubuntu-latest - if: github.repository == 'denoland/rusty_v8' - steps: - - name: Clone repository - uses: actions/checkout@v3 - - name: Fetch origin/main - run: git fetch origin main - - uses: denoland/setup-deno@main - with: - deno-version: v1.x - - name: Setup Git user - run: | - git config --global user.email "33910674+denobot@users.noreply.github.com" - git config --global user.name "denobot" - git config --global user.password ${{ secrets.DENOBOT_PAT }} - echo "GIT_USER=${{ secrets.DENOBOT_PAT }}" >> $GITHUB_ENV - git remote set-url origin https://${{ secrets.DENOBOT_PAT }}@github.com/denoland/rusty_v8.git - - run: deno run -A ./tools/auto_update_v8.ts - env: - GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }}