From 20623255dda7cb27754b95a7629bc1382e463a6b Mon Sep 17 00:00:00 2001 From: Michael Borkenstein Date: Fri, 18 Sep 2020 16:25:12 -0500 Subject: [PATCH] AUTH-3110-use-cfsetup-precache --- cfsetup.yaml | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/cfsetup.yaml b/cfsetup.yaml index de0e4af6..cf36109e 100644 --- a/cfsetup.yaml +++ b/cfsetup.yaml @@ -61,8 +61,9 @@ stretch: &stretch - build-essential - python3-setuptools - python3-pip - post-cache: + pre-cache: &install_pygithub - pip3 install pygithub + post-cache: - export GOOS=linux - export GOARCH=amd64 - make github-release @@ -85,8 +86,8 @@ stretch: &stretch - gcc-arm-linux-gnueabihf - python3-setuptools - python3-pip + pre-cache: *install_pygithub post-cache: - - pip3 install pygithub - export GOOS=linux - export GOARCH=arm - export CC=arm-linux-gnueabihf-gcc @@ -107,8 +108,8 @@ stretch: &stretch - gcc-multilib - python3-setuptools - python3-pip + pre-cache: *install_pygithub post-cache: - - pip3 install pygithub - export GOOS=linux - export GOARCH=386 - make github-release @@ -129,8 +130,8 @@ stretch: &stretch - gcc-mingw-w64 - python3-setuptools - python3-pip + pre-cache: *install_pygithub post-cache: - - pip3 install pygithub - export GOOS=windows - export GOARCH=amd64 - export CC=x86_64-w64-mingw32-gcc @@ -152,8 +153,8 @@ stretch: &stretch - gcc-mingw-w64 - python3-setuptools - python3-pip + pre-cache: *install_pygithub post-cache: - - pip3 install pygithub - export GOOS=windows - export GOARCH=386 - export CC=i686-w64-mingw32-gcc-win32 @@ -166,8 +167,8 @@ stretch: &stretch - g++-aarch64-linux-gnu - python3-setuptools - python3-pip + pre-cache: *install_pygithub post-cache: - - pip3 install pygithub - export GOOS=linux - export GOARCH=arm64 - export CC=aarch64-linux-gnu-gcc @@ -178,8 +179,8 @@ stretch: &stretch - *pinned_go - python3-setuptools - python3-pip + pre-cache: *install_pygithub post-cache: - - pip3 install pygithub - make github-mac-upload test: build_dir: *build_dir @@ -205,8 +206,8 @@ stretch: &stretch - *pinned_go - python3-setuptools - python3-pip + pre-cache: *install_pygithub post-cache: - - pip3 install pygithub - make github-message jessie: *stretch @@ -218,10 +219,11 @@ centos-7: build_dir: *build_dir builddeps: &el7_builddeps - https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm - post-cache: - - sudo yum install -y fakeroot + pre-cache: + - yum install -y fakeroot - wget https://golang.org/dl/go1.15.2.linux-amd64.tar.gz -P /tmp/ - - sudo tar -C /usr/local -xzf /tmp/go1.15.2.linux-amd64.tar.gz + - tar -C /usr/local -xzf /tmp/go1.15.2.linux-amd64.tar.gz + post-cache: - export PATH=$PATH:/usr/local/go/bin - export GOOS=linux - export GOARCH=amd64 @@ -229,10 +231,11 @@ centos-7: build-rpm: build_dir: *build_dir builddeps: *el7_builddeps - post-cache: - - sudo yum install -y fakeroot + pre-cache: + - yum install -y fakeroot - wget https://golang.org/dl/go1.15.2.linux-amd64.tar.gz -P /tmp/ - - sudo tar -C /usr/local -xzf /tmp/go1.15.2.linux-amd64.tar.gz + - tar -C /usr/local -xzf /tmp/go1.15.2.linux-amd64.tar.gz + post-cache: - export PATH=$PATH:/usr/local/go/bin - export GOOS=linux - export GOARCH=amd64