summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2021-06-20 08:22:46 (GMT)
committerGitHub <noreply@github.com>2021-06-20 08:22:46 (GMT)
commitc7996054b5f7520b94839427f3f1f19acea409b0 (patch)
tree24490f6fa6aab626dabe428c26af4d60cc29e7ac
parentf10389a5aafb0de332da95edea633ed7b91f2b5f (diff)
parent8c002db14165b98800a794ceb72c2c5c8f2a4901 (diff)
Merge pull request #1534 from cpackham/ci-download
CI: download tarballs
-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: |