Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/build_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -114,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
Expand All @@ -126,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') }}
Expand Down