-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Possible fix for dependabot issues and add CodeQL workflow (#2606)
- Loading branch information
1 parent
d4fad49
commit dc6e79d
Showing
3 changed files
with
52 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
name: Build binaries | ||
|
||
on: | ||
pull_request_target: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- "v*" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: Build binaries for ${{ matrix.platform.name }}-${{ matrix.arch }} | ||
|
@@ -155,15 +160,9 @@ jobs: | |
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.17 | ||
|
||
- name: Cache go modules | ||
id: cache-go-mod | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
go-version-file: go.mod | ||
cache: true | ||
cache-dependency-path: go.sum | ||
|
||
- name: Cache ffmpeg | ||
id: cache-ffmpeg | ||
|
@@ -198,7 +197,7 @@ jobs: | |
&& sudo ldconfig | ||
- name: Install go modules | ||
if: steps.cache-go-mod.outputs.cache-hit != 'true' | ||
if: steps.go.outputs.cache-hit != 'true' | ||
run: go mod download | ||
|
||
- name: Install ffmpeg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters