build: Build pipeline based off path filters

pull/1/head
sgoudham 2 years ago
parent 8077689388
commit ca9a870ccb
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -0,0 +1,21 @@
name: build
on:
push:
paths-ignore:
- 'src/**'
- 'tests/**'
- '.github/**'
branches:
- '**'
pull_request:
paths-ignore:
- 'src/**'
- 'tests/**'
- '.github/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'

@ -2,9 +2,17 @@ name: build
on: on:
push: push:
paths:
- 'src/**'
- 'tests/**'
- '.github/**'
branches: branches:
- '**' - '**'
pull_request: pull_request:
paths:
- 'src/**'
- 'tests/**'
- '.github/**'
jobs: jobs:
install-cross: install-cross:
@ -104,4 +112,4 @@ jobs:
channel: [ stable, beta ] channel: [ stable, beta ]
target: target:
- x86_64-unknown-linux-gnu - x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl - x86_64-unknown-linux-musl

@ -140,4 +140,4 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.BIN }}.tar.gz asset_path: ${{ env.BIN }}.tar.gz
asset_name: ${{ env.BIN }}-${{ matrix.target }}.tar.gz asset_name: ${{ env.BIN }}-${{ matrix.target }}.tar.gz
asset_content_type: application/gzip asset_content_type: application/gzip

Loading…
Cancel
Save