mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(ci): skip build on misc files (#1854)
feat(ci): don't build on misc files
This commit is contained in:
parent
4c39198c37
commit
b07556ceaa
1 changed files with 36 additions and 22 deletions
38
.github/workflows/release.yml
vendored
38
.github/workflows/release.yml
vendored
|
@ -7,7 +7,21 @@ on:
|
||||||
- "develop"
|
- "develop"
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
paths-ignore:
|
||||||
|
- '.github/ISSUE_TEMPLATE/**'
|
||||||
|
- '.github/images/**'
|
||||||
|
- 'config.toml'
|
||||||
|
- 'docker-compose.yml'
|
||||||
|
- 'Makefile'
|
||||||
|
- '**.md'
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '.github/ISSUE_TEMPLATE/**'
|
||||||
|
- '.github/images/**'
|
||||||
|
- 'config.toml'
|
||||||
|
- 'docker-compose.yml'
|
||||||
|
- 'Makefile'
|
||||||
|
- '**.md'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
|
@ -62,7 +76,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ ubuntu-latest ]
|
||||||
cgo: [ 1, 0 ]
|
cgo: [ 1, 0 ]
|
||||||
name: Test${{ matrix.cgo == 1 && ' CGO'|| '' }} ${{ matrix.os }}
|
name: Test${{ matrix.cgo == 1 && ' CGO'|| '' }} ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
@ -116,7 +130,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, windows-latest]
|
os: [ macos-latest, windows-latest ]
|
||||||
cgo: [ 1, 0 ]
|
cgo: [ 1, 0 ]
|
||||||
name: Test${{ matrix.cgo == 1 && ' CGO'|| '' }} ${{ matrix.os }}
|
name: Test${{ matrix.cgo == 1 && ' CGO'|| '' }} ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
@ -166,11 +180,11 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
||||||
cgo: [ 1, 0 ]
|
cgo: [ 1, 0 ]
|
||||||
name: Automatic PGO ${{ matrix.cgo == 1 && 'CGO ' || ''}}run ${{ matrix.os }}
|
name: Automatic PGO ${{ matrix.cgo == 1 && 'CGO ' || ''}}run ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
needs: [web]
|
needs: [ web ]
|
||||||
env:
|
env:
|
||||||
GOPATH: ${{ startsWith(matrix.os, 'windows') && 'D:\golang\go' || '' }}
|
GOPATH: ${{ startsWith(matrix.os, 'windows') && 'D:\golang\go' || '' }}
|
||||||
GOCACHE: ${{ startsWith(matrix.os, 'windows') && 'D:\golang\cache' || '' }}
|
GOCACHE: ${{ startsWith(matrix.os, 'windows') && 'D:\golang\cache' || '' }}
|
||||||
|
@ -207,7 +221,7 @@ jobs:
|
||||||
goprofilecombine:
|
goprofilecombine:
|
||||||
name: Combine pprof profiles
|
name: Combine pprof profiles
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [pgo, test, testother]
|
needs: [ pgo, test, testother ]
|
||||||
steps:
|
steps:
|
||||||
- name: Download pprof profiles
|
- name: Download pprof profiles
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
@ -237,7 +251,7 @@ jobs:
|
||||||
goreleaserbuild:
|
goreleaserbuild:
|
||||||
name: Build distribution binaries
|
name: Build distribution binaries
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [web, goprofilecombine]
|
needs: [ web, goprofilecombine ]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -267,7 +281,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
distribution: goreleaser
|
distribution: goreleaser
|
||||||
version: "~> v2"
|
version: "~> v2"
|
||||||
args: release --clean --skip=validate --skip=publish --parallelism 5
|
args: release --clean --skip=validate,publish --parallelism 5
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
@ -317,13 +331,13 @@ jobs:
|
||||||
- linux/arm/v6
|
- linux/arm/v6
|
||||||
- linux/arm/v7
|
- linux/arm/v7
|
||||||
- linux/arm64
|
- linux/arm64
|
||||||
# - linux/mips64le
|
# - linux/mips64le
|
||||||
# - linux/mips64
|
# - linux/mips64
|
||||||
- linux/ppc64le
|
- linux/ppc64le
|
||||||
# - linux/riscv64
|
# - linux/riscv64
|
||||||
- linux/s390x
|
- linux/s390x
|
||||||
- windows/amd64
|
- windows/amd64
|
||||||
needs: [web, goprofilecombine]
|
needs: [ web, goprofilecombine ]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -407,7 +421,7 @@ jobs:
|
||||||
name: Publish Docker multi-arch manifest
|
name: Publish Docker multi-arch manifest
|
||||||
if: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' }}
|
if: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [docker]
|
needs: [ docker ]
|
||||||
steps:
|
steps:
|
||||||
- name: Download image digests
|
- name: Download image digests
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue