Compare commits

..

3 Commits

Author SHA1 Message Date
3ff44f8e58 v4.2.3
=====================================================================

--- Bug Fixes ----------------------------

- AUR test-before-publish requires usage of the CIRCLE_TAG rather than
  the CIRCLE_BRANCH
2024-04-14 02:15:31 -06:00
f0a6b16a0c v4.2.2
=====================================================================

--- Bug Fixes ----------------------------

- Ensure CircleCI automatic publishes actually trigger on expected tags
2024-04-14 02:04:44 -06:00
74fe48cc4a v4.2.1
=====================================================================

--- New Features -------------------------

- Automatic test-stable rolling release to AUR
2024-04-14 01:59:01 -06:00

View File

@ -44,7 +44,7 @@ commands:
custom: custom:
archlinux: archlinux:
prepare: prepare:
- &archlinux_prepare - &archlinux-prepare
run: run:
name: prepare archlinux dependencies name: prepare archlinux dependencies
command: | command: |
@ -53,18 +53,18 @@ custom:
echo "ci ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers echo "ci ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
clone-aur: clone-aur:
- &archlinux_clone_aur - &archlinux-clone-aur
archlinux-run: archlinux-run:
_name: clone aur/scwrypts _name: clone aur/scwrypts
command: git clone https://aur.archlinux.org/scwrypts.git aur command: git clone https://aur.archlinux.org/scwrypts.git aur
clone-scwrypts: clone-scwrypts:
- &archlinux_clone_scwrypts - &archlinux-clone-scwrypts
run: run:
name: clone wrynegade/scwrypts name: clone wrynegade/scwrypts
working_directory: /home/ci working_directory: /home/ci
command: | command: |
GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no" git clone -b "$CIRCLE_BRANCH" "$CIRCLE_REPOSITORY_URL" scwrypts GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no" git clone -b "$(echo $CIRCLE_BRANCH | grep . || echo $CIRCLE_TAG)" "$CIRCLE_REPOSITORY_URL" scwrypts
chown -R ci:ci ./scwrypts chown -R ci:ci ./scwrypts
@ -83,9 +83,9 @@ jobs:
aur-test: aur-test:
executor: archlinux executor: archlinux
steps: steps:
- *archlinux_prepare - *archlinux-prepare
- *archlinux_clone_aur - *archlinux-clone-aur
- *archlinux_clone_scwrypts - *archlinux-clone-scwrypts
- archlinux-run: - archlinux-run:
_name: test aur build on current source _name: test aur build on current source
working_directory: /home/ci/aur working_directory: /home/ci/aur
@ -108,8 +108,8 @@ jobs:
aur-publish: aur-publish:
executor: archlinux executor: archlinux
steps: steps:
- *archlinux_prepare - *archlinux-prepare
- *archlinux_clone_aur - *archlinux-clone-aur
- archlinux-run: - archlinux-run:
_name: update PKGBUILD and .SRCINFO _name: update PKGBUILD and .SRCINFO
working_directory: /home/ci/aur working_directory: /home/ci/aur
@ -239,18 +239,19 @@ workflows:
test: test:
jobs: jobs:
- aur-test: - aur-test:
&dev_filters &dev-filters
filters: filters:
branches: branches:
ignore: /^main$/ ignore: /^main$/
- python-test: *dev_filters - python-test: *dev-filters
- nodejs-test: *dev_filters - nodejs-test: *dev-filters
publish: publish:
jobs: jobs:
- require-full-semver: - require-full-semver:
filters: filters:
&only-run-on-full-semver-tag-filters
tags: tags:
only: /^v\d+\.\d+\.\d+.*$/ only: /^v\d+\.\d+\.\d+.*$/
branches: branches:
@ -258,8 +259,18 @@ workflows:
- aur-test: - aur-test:
&only-publish-for-full-semver &only-publish-for-full-semver
requires: [require-full-semver] filters: *only-run-on-full-semver-tag-filters
requires:
- require-full-semver
- aur-publish: - 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] context: [aur-yage]
requires: requires:
- aur-test - aur-test
@ -268,10 +279,12 @@ workflows:
- python-test: *only-publish-for-full-semver - python-test: *only-publish-for-full-semver
- python-publish: - python-publish:
filters: *only-run-on-full-semver-tag-filters
requires: requires:
- python-test - python-test
- nodejs-test: *only-publish-for-full-semver - nodejs-test: *only-publish-for-full-semver
- nodejs-publish: - nodejs-publish:
filters: *only-run-on-full-semver-tag-filters
requires: requires:
- nodejs-test - nodejs-test