build(github): 👷 use env files for nfpm build #164
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
name: Run CodeQL | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: '11 0 * * 5' | |
workflow_dispatch: | |
jobs: | |
analyze: | |
permissions: | |
security-events: write | |
actions: read | |
contents: read | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'go' ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install/Cache dependencies | |
id: cache_pkg_deps | |
uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: desktop-file-utils gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev | |
- name: Setup Go | |
id: setup_go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.22' | |
- name: Install Go dependencies | |
id: install_go_deps | |
run: | | |
go install golang.org/x/tools/cmd/stringer@latest | |
go install github.com/fyne-io/fyne-cross@latest | |
go install golang.org/x/text/cmd/gotext@latest | |
go install github.com/matryer/moq@latest | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Build agent | |
run: | | |
go generate ./... | |
go build | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |