From 9bc1834920413c757976ce9eab26df774d348385 Mon Sep 17 00:00:00 2001 From: Alex Starche Date: Wed, 15 Sep 2021 09:11:17 -0500 Subject: [PATCH 1/2] Use chroot to build ubuntu-16.04 on ubuntu-latest --- .github/workflows/build_cmake.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index a6fc53885..886adf5b6 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -32,7 +32,7 @@ jobs: } - { name: "Ubuntu Build", artifact: "Linux.tar.xz", - os: ubuntu-16.04, + os: ubuntu-latest, build_type: "Release", cc: "gcc-9", cxx: "g++-9", cmake_platform: "", cmake_number_of_jobs: "-j 2" @@ -44,6 +44,14 @@ jobs: if: "github.ref != 'refs/heads/main'" with: access_token: ${{ github.token }} + + - name: chroot Ubuntu 16.04 + if: ${{ (runner.os == 'Linux') }} + run: | + sudo apt install debootstrap + sudo mkdir /ubuntu1604 + sudo debootstrap --arch=amd64 xenial /ubuntu1604 http://archive.ubuntu.com/ubuntu/ + sudo chroot /ubuntu1604 - name: Checkout Repo uses: actions/checkout@v2 From d8f2589b2e27000fb6339196a08df2d931e91332 Mon Sep 17 00:00:00 2001 From: Alex Starche Date: Wed, 15 Sep 2021 13:27:28 -0500 Subject: [PATCH 2/2] retain server --- .github/workflows/build_cmake.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 886adf5b6..4456a5c13 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -122,7 +122,7 @@ jobs: endif() - name: Tar Linux Server Binaries - if: ${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/releases')) && (runner.os == 'Linux') }} + if: ${{ (runner.os == 'Linux') }} run: >- tar -cvzf ni-grpc-device-server-linux-glibc2_23-x64.tar.gz -C ${GITHUB_WORKSPACE}/build @@ -134,11 +134,11 @@ jobs: - name: Upload Linux Server Binaries Artifact uses: actions/upload-artifact@v2 - if: ${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/releases')) && (runner.os == 'Linux') }} + if: ${{ (runner.os == 'Linux') }} with: name: ni-grpc-device-server-linux-glibc2_23-x64 path: ni-grpc-device-server-linux-glibc2_23-x64.tar.gz - retention-days: 5 + retention-days: 1 - name: Tar Linux Test Binaries if: ${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/releases')) && (runner.os == 'Linux') }}