fix: Add arm64 build and release #363
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: CI | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
workflow_dispatch: | |
env: | |
GO_VERSION: '1.23.0' | |
GOLANGCI_LINT_VERSION: '1.60.3' | |
jobs: | |
git-secrets: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Pull latest awslabs/git-secrets repo | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
repository: awslabs/git-secrets | |
ref: 1.3.0 | |
fetch-tags: true | |
path: git-secrets | |
- name: Install git secrets from source | |
run: sudo make install | |
working-directory: git-secrets | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Scan repository for git secrets | |
run: | | |
git secrets --register-aws | |
git secrets --scan-history | |
lint: | |
strategy: | |
matrix: | |
working_dir: ['.'] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: golangci/golangci-lint-action@v6 # v6.1.0 | |
with: | |
version: v${{ env.GOLANGCI_LINT_VERSION }} | |
working-directory: ${{ matrix.working_dir }} | |
args: --fix=false --timeout=5m | |
yamllint: | |
name: yamllint-lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- run: yamllint . | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
cache: false | |
- name: Checkout finch-deamon repo | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Build and run unit tests | |
run: | | |
make build | |
make test-unit | |
e2e-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Checkout finch-daemon repo | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Install Dependencies for e2e Testing | |
run: ./setup-test-env.sh | |
- name: Build the daemon | |
run: make build | |
- name: Remove default podman network config | |
run: | | |
sudo ls /etc/cni/net.d | |
sudo rm /etc/cni/net.d/87-podman-bridge.conflist | |
- name: Start finch-daemon | |
run: sudo bin/finch-daemon --debug --socket-owner $UID & | |
- name: Run e2e test | |
run: sudo make test-e2e |