From b2272887a72e1bd51deaf47ae1df513385a7aecb Mon Sep 17 00:00:00 2001 From: Kevin Park Date: Tue, 15 Sep 2020 18:29:16 -0400 Subject: [PATCH] differentiate ubuntu versions --- .github/workflows/packaging.yaml | 68 +++++++++++++++++++++++++++++--- 1 file changed, 63 insertions(+), 5 deletions(-) diff --git a/.github/workflows/packaging.yaml b/.github/workflows/packaging.yaml index 8e076616..55c18688 100644 --- a/.github/workflows/packaging.yaml +++ b/.github/workflows/packaging.yaml @@ -7,7 +7,7 @@ on: jobs: checkout: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -30,7 +30,65 @@ jobs: path: source.tar.gz - build-riscv32: + build-riscv32-ubuntu_18_04: + needs: checkout + runs-on: ubuntu-18.04 + steps: + - uses: actions/download-artifact@v2 + with: + name: source-code-full + + # workaround https://github.com/actions/upload-artifact/issues/38 + - name: tarball source + run: tar -xvf source.tar.gz + + - name: install dependencies + run: sudo ./.github/setup-apt.sh + + - name: Build Toolchain + run: | + ./configure --prefix=/opt/riscv --with-arch=rv32gc --with-abi=ilp32d + sudo make -j $(nproc) linux + + - name: tarball build + run: tar czvf riscv.tar.gz -C /opt/ riscv/ + + - uses: actions/upload-artifact@v2 + with: + name: riscv32-glibc-ubuntu_18_04-nightly + path: riscv.tar.gz + + + build-riscv64-ubuntu_18_04: + needs: checkout + runs-on: ubuntu-18.04 + steps: + - uses: actions/download-artifact@v2 + with: + name: source-code-full + + # workaround https://github.com/actions/upload-artifact/issues/38 + - name: tarball source + run: tar -xvf source.tar.gz + + - name: install dependencies + run: sudo ./.github/setup-apt.sh + + - name: Build Toolchain + run: | + ./configure --prefix=/opt/riscv + sudo make -j $(nproc) linux + + - name: tarball build + run: tar czvf riscv.tar.gz -C /opt/ riscv/ + + - uses: actions/upload-artifact@v2 + with: + name: riscv64-glibc-ubuntu_18_04-nightly + path: riscv.tar.gz + + + build-riscv32-ubuntu_20_04: needs: checkout runs-on: ubuntu-20.04 steps: @@ -55,11 +113,11 @@ jobs: - uses: actions/upload-artifact@v2 with: - name: riscv32-glibc-nightly + name: riscv32-glibc-ubuntu_20_04-nightly path: riscv.tar.gz - build-riscv64: + build-riscv64-ubuntu_20_04: needs: checkout runs-on: ubuntu-20.04 steps: @@ -84,5 +142,5 @@ jobs: - uses: actions/upload-artifact@v2 with: - name: riscv64-glibc-nightly + name: riscv64-glibc-ubuntu_20_04-nightly path: riscv.tar.gz