summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2021-06-20 00:29:41 (GMT)
committerChris Packham <judge.packham@gmail.com>2021-06-20 01:41:47 (GMT)
commit8c002db14165b98800a794ceb72c2c5c8f2a4901 (patch)
tree91c4f811ef945f5ab5a26a0fa1c6c24f929bbd44 /.github
parent5ab29fbf3e4e4dbd71ea9d01d15f6a575bd71562 (diff)
CI: download tarballs
Add a single job to download (most of) the tarballs required. This should allow the CI job to fail early when various sources are off-line and prevent us from unintentionally DDoSing sites that we rely on. Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/continuous-integration-workflow.yml48
1 files changed, 47 insertions, 1 deletions
diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml
index bb65fd0..16f2402 100644
--- a/.github/workflows/continuous-integration-workflow.yml
+++ b/.github/workflows/continuous-integration-workflow.yml
@@ -49,13 +49,52 @@ jobs:
path: config.log
if: ${{ always() }}
- toolchains:
+ tarballs:
needs: crosstool
runs-on: ${{ matrix.host }}
strategy:
matrix:
host: [
"ubuntu-latest",
+ ]
+ steps:
+ - name: "download ct-ng"
+ uses: actions/download-artifact@v2
+ with:
+ name: crosstool.${{ matrix.host }}
+ - name: "extract ct-ng"
+ run: |
+ tar -xf ct-ng.tar
+ - name: "prereq Linux"
+ if: ${{ runner.os == 'Linux' }}
+ run: |
+ sudo apt-get install -y gperf help2man libtool-bin
+ echo "$GITHUB_WORKSPACE/.local/bin" >> $GITHUB_PATH
+ - name: "ct-ng source"
+ run: |
+ mkdir -p src
+ for sample in aarch64-unknown-linux-gnu arm-picolibc-eabi \
+ arm-unknown-linux-musleabi armv6-nommu-linux-uclibcgnueabi; do \
+ ct-ng $sample; \
+ sed -i -e '/CT_LOG_PROGRESS_BAR/s/y$/n/' .config; \
+ sed -i -e '/CT_LOCAL_TARBALLS_DIR/s/HOME/CT_TOP_DIR/' .config; \
+ sed -i -e '/CT_PREFIX_DIR/s/HOME/CT_TOP_DIR/' .config; \
+ ct-ng source; \
+ done
+ tar -cvf src.tar src
+ - name: "upload sources"
+ uses: actions/upload-artifact@v2
+ with:
+ name: src.tar
+ path: src.tar
+
+ toolchains:
+ needs: [crosstool, tarballs]
+ runs-on: ${{ matrix.host }}
+ strategy:
+ matrix:
+ host: [
+ "ubuntu-latest",
"macos-10.15",
]
sample: [
@@ -108,6 +147,13 @@ jobs:
- name: "extract ct-ng"
run: |
tar -xf ct-ng.tar
+ - name: "download tarballs"
+ uses: actions/download-artifact@v2
+ with:
+ name: src.tar
+ - name: "extract tarballs"
+ run: |
+ tar -xvf src.tar
- name: "prereq Linux"
if: ${{ runner.os == 'Linux' }}
run: |