Skip to content

Commit

Permalink
chore: build apps in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyoucao577 committed Feb 3, 2024
1 parent abd1e88 commit 96af9f0
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,18 @@ jobs:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
app: [mediadump, flv2avc, mp42avc]
steps:
- uses: actions/checkout@v4
- name: Set APP_VERSION env
run: echo APP_VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV}

# ./cmd/mediadump
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: ./cmd/mediadump
binary_name: mediadump
build_flags: -v -tags ${{ env.APP_VERSION }}
md5sum: false

# ./cmd/flv2avc
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: ./cmd/flv2avc
binary_name: flv2avc
build_flags: -v -tags ${{ env.APP_VERSION }}
md5sum: false

# ./cmd/mp42avc
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: ./cmd/mp42avc
binary_name: mp42avc
project_path: ./cmd/${{ matrix.app }}
binary_name: ${{ matrix.app }}
build_flags: -v -tags ${{ env.APP_VERSION }}
md5sum: false

0 comments on commit 96af9f0

Please sign in to comment.