Compare commits

..

1 Commits

Author SHA1 Message Date
b7a86e9841 - new workflows to test and publish aur builds 2024-04-14 01:42:46 -06:00

View File

@ -44,7 +44,7 @@ commands:
custom:
archlinux:
prepare:
- &archlinux-prepare
- &archlinux_prepare
run:
name: prepare archlinux dependencies
command: |
@ -53,18 +53,18 @@ custom:
echo "ci ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
clone-aur:
- &archlinux-clone-aur
- &archlinux_clone_aur
archlinux-run:
_name: clone aur/scwrypts
command: git clone https://aur.archlinux.org/scwrypts.git aur
clone-scwrypts:
- &archlinux-clone-scwrypts
- &archlinux_clone_scwrypts
run:
name: clone wrynegade/scwrypts
working_directory: /home/ci
command: |
GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no" git clone -b "$(echo $CIRCLE_BRANCH | grep . || echo $CIRCLE_TAG)" "$CIRCLE_REPOSITORY_URL" scwrypts
GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no" git clone -b "$CIRCLE_BRANCH" "$CIRCLE_REPOSITORY_URL" scwrypts
chown -R ci:ci ./scwrypts
@ -83,9 +83,9 @@ jobs:
aur-test:
executor: archlinux
steps:
- *archlinux-prepare
- *archlinux-clone-aur
- *archlinux-clone-scwrypts
- *archlinux_prepare
- *archlinux_clone_aur
- *archlinux_clone_scwrypts
- archlinux-run:
_name: test aur build on current source
working_directory: /home/ci/aur
@ -108,8 +108,8 @@ jobs:
aur-publish:
executor: archlinux
steps:
- *archlinux-prepare
- *archlinux-clone-aur
- *archlinux_prepare
- *archlinux_clone_aur
- archlinux-run:
_name: update PKGBUILD and .SRCINFO
working_directory: /home/ci/aur
@ -239,19 +239,18 @@ workflows:
test:
jobs:
- aur-test:
&dev-filters
&dev_filters
filters:
branches:
ignore: /^main$/
- python-test: *dev-filters
- nodejs-test: *dev-filters
- python-test: *dev_filters
- nodejs-test: *dev_filters
publish:
jobs:
- require-full-semver:
filters:
&only-run-on-full-semver-tag-filters
tags:
only: /^v\d+\.\d+\.\d+.*$/
branches:
@ -259,18 +258,8 @@ workflows:
- aur-test:
&only-publish-for-full-semver
filters: *only-run-on-full-semver-tag-filters
requires:
- require-full-semver
requires: [require-full-semver]
- aur-publish:
#
# there's a crazy-low-chance race-condition between this job and the GH Action '../.github/workflows/automatic-release.yaml'
# - automatic-release creates the release artifact, but takes no more than 15-30 seconds (current avg:16s max:26s)
# - this publish step requires the release artifact, but waits for all language-repository publishes to complete first (a few minutes at least)
#
# if something goes wrong, this step can be safely rerun after fixing the release artifact :)
#
filters: *only-run-on-full-semver-tag-filters
context: [aur-yage]
requires:
- aur-test
@ -279,14 +268,10 @@ workflows:
- python-test: *only-publish-for-full-semver
- python-publish:
filters: *only-run-on-full-semver-tag-filters
context: [pypi-yage]
requires:
- python-test
- nodejs-test: *only-publish-for-full-semver
- nodejs-publish:
filters: *only-run-on-full-semver-tag-filters
context: [npm-wrynegade]
requires:
- nodejs-test