Files
act_runner_debian_packing/.github/workflows/nightly.yaml
Matheus Sampaio Queiroga b07a7d0878
Some checks failed
Build / build (386) (push) Failing after 7m58s
Build / build (amd64) (push) Failing after 7m59s
Build / build (arm) (push) Failing after 7m57s
Build / build (arm64) (push) Failing after 6m9s
Build / build (loong64) (push) Failing after 7m48s
Build / build (mips64) (push) Failing after 8m8s
Build / build (mips64le) (push) Failing after 8m7s
Build / build (mips) (push) Failing after 8m11s
Build / build (mipsle) (push) Failing after 8m1s
Build / build (ppc64) (push) Failing after 8m0s
Build / build (ppc64le) (push) Failing after 6m16s
Build / build (s390x) (push) Failing after 3m41s
Build / build (riscv64) (push) Failing after 3m43s
Update dpkg
2025-07-28 20:29:35 -03:00

70 lines
1.9 KiB
YAML

name: Build
on:
push:
branches:
- main
schedule:
- cron: "0 0 */3 * *"
workflow_dispatch:
inputs:
PKG_VERSION:
type: string
required: false
default: main
description: Version of gitea act-runner
jobs:
build:
runs-on: ubuntu-latest
env:
PKG_VERSION: "${{ inputs.PKG_VERSION || 'main' }}"
strategy:
matrix:
ARCH:
- "386"
- "amd64"
- "arm"
- "arm64"
- "riscv64"
- "loong64"
- "mips"
- "mips64"
- "mips64le"
- "mipsle"
- "ppc64"
- "ppc64le"
- "s390x"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
cache: true
go-version-file: "go.mod"
- name: Clone act_runner
run: |
git clone https://gitea.com/gitea/act_runner.git act_runner
cd act_runner
if [[ "${PKG_VERSION}" == "main" ]]; then
PKG_VERSION="$(git describe | sed 's/^v//')"
echo "PKG_VERSION=${PKG_VERSION}" > $GITHUB_ENV
elif [[ -z "${PKG_VERSION}" ]]; then
PKG_VERSION="$(git describe | sed 's/^v//')"
echo "PKG_VERSION=${PKG_VERSION}" > $GITHUB_ENV
git checkout "${PKG_VERSION}"
else
git checkout "${PKG_VERSION}" || echo "Version not found, using main" && git switch main
fi
echo "Package Version: ${PKG_VERSION}"
- name: build
working-directory: ${{ github.workspace }}/act_runner
run: make build
env:
RELASE_VERSION: ${{env.PKG_VERSION}}
GOARCH: ${{ matrix.ARCH }}
GOOS: "linux"
TAGS: "netgo osusergo"
- name: Release
run: go run -v ./ -arch '${{matrix.ARCH}}' -version '${{env.PKG_VERSION}}' -token '${{secrets.GITHUB_TOKEN}}' -upload '${{ github.workspace }}/act_runner/act_runner'