ayaports/.forgejo/workflows/action.yaml
Antoine Martin a0059524fc
Some checks failed
/ lint (pull_request) Failing after 24s
/ build-x86_64 (pull_request) Failing after 30s
remove upload
2024-08-11 17:34:24 -04:00

39 lines
1.2 KiB
YAML

on:
pull_request:
types: [ assigned, opened, synchronize, reopened ]
jobs:
lint:
run-name: lint
runs-on: x86_64
container:
image: alpinelinux/apkbuild-lint-tools:latest
env:
CI_PROJECT_DIR: ${{ github.workspace }}
CI_DEBUG_BUILD: ${{ runner.debug }}
CI_MERGE_REQUEST_PROJECT_URL: ${{ github.server_url }}/${{ github.repository }}
CI_MERGE_REQUEST_TARGET_BRANCH_NAME: ${{ github.base_ref }}
steps:
- run: doas apk add nodejs git
- uses: actions/checkout@v4
with:
fetch-depth: 500
- run: lint
continue-on-error: true
build-x86_64:
runs-on: x86_64
container:
image: alpinelinux/alpine-gitlab-ci:latest
env:
CI_PROJECT_DIR: ${{ github.workspace }}
CI_DEBUG_BUILD: ${{ runner.debug }}
CI_MERGE_REQUEST_PROJECT_URL: ${{ github.server_url }}/${{ github.repository }}
CI_MERGE_REQUEST_TARGET_BRANCH_NAME: ${{ github.base_ref }}
steps:
- run: doas apk add nodejs git patch
- uses: actions/checkout@v4
with:
fetch-depth: 500
- run: doas patch -d / -p1 -i ${{ github.workspace }}/.forgejo/patches/build.patch
- run: build.sh