@@ -344,60 +344,6 @@ commands:
344344 paths :
345345 - ~/.cache/go-build
346346 - /go/pkg/mod
347- arch-release :
348- steps :
349- - run :
350- name : Install dependencies
351- command : pacman -Sy --noconfirm openssh git pacman-contrib binutils
352- - run :
353- name : Create TinyGo user
354- command : useradd -m tinygo
355- - run :
356- name : Start SSH Agent
357- user : tinygo
358- command : eval $(ssh-agent -s)
359- - run :
360- name : Add ARCH_RELEASE_SSH_PRIVATE_KEY identity
361- user : tinygo
362- command : echo "${ARCH_RELEASE_SSH_PRIVATE_KEY}" | tr -d '\r' | ssh-add -
363- - run :
364- name : Create SSH directory
365- user : tinygo
366- command : mkdir -p ~/.ssh && chmod 700 ~/.ssh
367- - run :
368- name : Add aur.archlinux.org to known hosts
369- user : tinygo
370- command : ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
371- - run :
372- name : Clone tinygo-bin repo
373- user : tinygo
374- command :
git clone ssh://[email protected] /tinygo-bin.git ~/tinygo-bin 375- - run :
376- name : Update package version
377- user : tinygo
378- command : sed -i -E "s/(pkgver=)(.*)$/\1${CIRCLE_TAG}/" ~/tinygo-bin/PKGBUILD
379- - run :
380- name : Update file checksums
381- user : tinygo
382- command : cd ~/tinygo-bin && updpkgsums
383- - run :
384- name : Update .SRCINFO
385- user : tinygo
386- command : cd ~/tinygo-bin && makepkg --printsrcinfo > .SRCINFO
387- # Commit the update
388- - run :
389- name : Set git commit config
390- user : tinygo
391- command : |
392- git config --global user.email "[email protected] " && 393- git config --global user.name "TinyGo Release Bot"
394- - run :
395- name : Commit and push changes
396- user : tinygo
397- command : |
398- cd ~/tinygo-bin &&
399- git commit -a -m "Update tinygo-bin to v${CIRCLE_TAG}" &&
400- git push origin master
401347
402348jobs :
403349 test-llvm9-go111 :
@@ -445,12 +391,6 @@ jobs:
445391 xcode : " 10.1.0"
446392 steps :
447393 - build-macos
448- arch-release :
449- docker :
450- - image : archlinux:latest
451- steps :
452- - arch-release
453-
454394
455395
456396
@@ -465,12 +405,3 @@ workflows:
465405 - build-linux
466406 - build-macos
467407 - assert-test-linux
468- release :
469- jobs :
470- - arch-release :
471- filters :
472- branches :
473- ignore : /.*/
474- tags :
475- # Runs on every semver release
476- only : /v[0-9]+(\.[0-9]+)*(-.*)*/
0 commit comments