2024-08-11 16:37:29 -04:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [ assigned, opened, synchronize, reopened ]
|
2024-08-11 16:38:29 -04:00
|
|
|
|
2024-08-11 16:00:48 -04:00
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
run-name: lint
|
2024-08-11 16:26:58 -04:00
|
|
|
runs-on: x86_64
|
2024-08-11 16:07:24 -04:00
|
|
|
container:
|
2024-08-11 16:56:40 -04:00
|
|
|
image: alpinelinux/apkbuild-lint-tools:latest
|
2024-08-11 17:06:28 -04:00
|
|
|
env:
|
|
|
|
CI_PROJECT_DIR: ${{ github.workspace }}
|
|
|
|
CI_DEBUG_BUILD: ${{ runner.debug }}
|
2024-08-11 17:11:07 -04:00
|
|
|
CI_MERGE_REQUEST_PROJECT_URL: ${{ github.server_url }}/${{ github.repository }}
|
2024-08-11 17:13:00 -04:00
|
|
|
CI_MERGE_REQUEST_TARGET_BRANCH_NAME: ${{ github.base_ref }}
|
2024-08-11 16:00:48 -04:00
|
|
|
steps:
|
2024-08-11 16:57:28 -04:00
|
|
|
- run: doas apk add nodejs git
|
2024-08-11 16:43:34 -04:00
|
|
|
- uses: actions/checkout@v4
|
2024-08-11 16:50:18 -04:00
|
|
|
with:
|
|
|
|
fetch-depth: 500
|
2024-08-11 17:06:28 -04:00
|
|
|
- run: lint
|
2024-08-11 17:33:12 -04:00
|
|
|
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
|