From 4c9a9006fae203357cc4966a3101e99cb3f4b22c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirit=20S=C3=A6lensminde?= Date: Thu, 14 May 2020 13:09:51 +0700 Subject: [PATCH 1/4] First try at action script. --- .github/workflows/main.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d7737d7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: CI + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: + - master + - develop + - feature/* + pull_request: + branches: + - develop + +jobs: + build: + # The type of runner that the job will run on + runs-on: ubuntu-20.04 + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Configure machine + run: | + apt-get update -qq + apt-get install ninja-build cmake g++-10 clang + + - name: Configure build + run: | + mkdir build.tmp && cd build.tmp + cmake .. -G ninja-build -DSKIP_BUILD_TEST=ON + + - name: Perform build + run: ninja From e73cfed48091f56bf53a3bd975fd9b69e52dcad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirit=20S=C3=A6lensminde?= Date: Thu, 14 May 2020 13:12:19 +0700 Subject: [PATCH 2/4] Also include pull requests to master --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d7737d7..5828d99 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,7 @@ on: - feature/* pull_request: branches: + - master - develop jobs: From 8725b6f9227fba8e339e35116a1a8dd6ff682382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirit=20S=C3=A6lensminde?= Date: Thu, 14 May 2020 13:16:43 +0700 Subject: [PATCH 3/4] Use ubuntu latest for now Hopefully it'll get us focal --- .github/workflows/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5828d99..3e3c857 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,5 @@ name: CI -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch on: push: branches: @@ -16,7 +14,7 @@ on: jobs: build: # The type of runner that the job will run on - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it From 5b5f4123bec88b3502924f3f90341c8922d14665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirit=20S=C3=A6lensminde?= Date: Thu, 14 May 2020 13:24:43 +0700 Subject: [PATCH 4/4] Leave as 20.04 for now This will continue to error until the image is available. --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3e3c857..0af7146 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ on: jobs: build: # The type of runner that the job will run on - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it @@ -22,8 +22,8 @@ jobs: - name: Configure machine run: | - apt-get update -qq - apt-get install ninja-build cmake g++-10 clang + sudo apt-get update -qq + sudo apt-get install ninja-build cmake g++-10 clang - name: Configure build run: |