Skip to content

Commit

Permalink
chore: remove rust build from release process
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Feb 16, 2022
1 parent d7ca63b commit 6bf692e
Showing 1 changed file with 1 addition and 66 deletions.
67 changes: 1 addition & 66 deletions .github/workflows/publish-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,69 +33,4 @@ jobs:
release_name: Release v${{ steps.publish.outputs.version }}
body: ${{steps.publish.outputs.notes}}
draft: false
prerelease: true

build-release:
needs: release
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
node-version: [10.x, 12.x, 13.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v2
with:
ref: feat/v3.0.0
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install stable Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install LLVM
run: choco install -y llvm
if: runner.os == 'Windows'
- run: npm install
- run: npm run build:v3
- if: runner.os != 'windows'
run: rm -rf native/target
- if: runner.os == 'windows'
run: Remove-Item 'native\target' -Recurse -Force
- run: npm run package
- id: set_package_info
run: echo "::set-output name=packageJson::$(node ./scripts/native-lib-details.js)"
- name: Upload Release Assets
id: upload-release-asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ fromJson(steps.set_package_info.outputs.packageJson).staged_tarball }}
asset_name: ${{ fromJson(steps.set_package_info.outputs.packageJson).package_name }}
tag: ${{ needs.release.outputs.version }}

build-musl-release:
needs: release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10, 12, 14]
steps:
- uses: actions/checkout@v2
with:
ref: feat/v3.0.0
fetch-depth: 0
- id: set_package_info
run: docker run --rm -e LOCAL_USER_ID=`id -u $USER` -v $(pwd):/workspace -t pactfoundation/pact-js-musl:${{ matrix.node-version }}
- name: Upload Release Assets
id: upload-release-asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ fromJson(steps.set_package_info.outputs.packageJson).staged_tarball }}
asset_name: ${{ fromJson(steps.set_package_info.outputs.packageJson).package_name }}
tag: ${{ needs.release.outputs.version }}
prerelease: true

0 comments on commit 6bf692e

Please sign in to comment.