From 14c692bc822f9baf98bea9a8522d7cadcf1166e8 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Sun, 2 May 2021 16:27:27 -0400 Subject: [PATCH 1/5] ci(gha/release): Bump to ubuntu-18.04 Per https://wiki.ubuntu.com/Releases, 16.04 is no longer under standard support. Switch to the next LTS, 18.04, for the next couple years. --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5064760d2..a94b3d0a87 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ on: # Build on the oldest supported images, so we have broader compatibility jobs: linux: - runs-on: ubuntu-16.04 + runs-on: ubuntu-18.04 outputs: version: ${{ steps.build.outputs.version }} release: ${{ steps.build.outputs.release }} @@ -43,7 +43,7 @@ jobs: retention-days: 1 appimage: - runs-on: ubuntu-16.04 + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 with: From 0ee52fba31b1a473529cc5878c9b873362342daa Mon Sep 17 00:00:00 2001 From: James McCoy Date: Sun, 2 May 2021 16:39:09 -0400 Subject: [PATCH 2/5] ci(gha/ci): Use clang-12 for TSAN --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f2b3f102f..7c2c38d88c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: runner: ubuntu-20.04 os: linux - flavor: tsan - cc: clang-11 + cc: clang-12 runner: ubuntu-20.04 os: linux - cc: clang From 26f5b979ec87d63554c742246855b5eea3d5e6e3 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Tue, 4 May 2021 23:44:01 -0400 Subject: [PATCH 3/5] ci(gha): Add weekly Coverity scans [skip ci] --- .github/workflows/coverity-scan.yml | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/coverity-scan.yml diff --git a/.github/workflows/coverity-scan.yml b/.github/workflows/coverity-scan.yml new file mode 100644 index 0000000000..cd15124b77 --- /dev/null +++ b/.github/workflows/coverity-scan.yml @@ -0,0 +1,44 @@ +name: Coverity +on: + schedule: + - cron: '0 10 * * 1' # Run every Monday at 00:10 + workflow_dispatch: + +jobs: + scan: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y autoconf automake build-essential cmake gettext gperf libtool-bin locales ninja-build pkg-config unzip + + - name: Download Coverity + run: | + wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=neovim%2Fneovim" -O coverity_tool.tgz + mkdir cov-scan + tar ax -f coverity_tool.tgz --strip-components=1 -c cov-scan + env: + TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} + + - name: Build dependencies + run: make deps + + - name: Build/scan neovim + run: | + env PATH=$(pwd)/cov-scan/bin:$PATH cov-build --dir cov-int make + + - name: Submit results + run: | + tar zcf cov-scan.tgz cov-int + curl --form token=$TOKEN \ + --form email=$EMAIL \ + --form file=@cov-scan.tgz \ + --form version="$(git rev-parse HEAD)" \ + --form description="Weekly GHA scan" \ + 'https://scan.coverity.com/builds?project=neovim%2Fneovim' + env: + TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} + EMAIL: ${{ secrets.COVERITY_SCAN_EMAIL }} From d399a853a3582b86dfadec0213f4d7d2c3676759 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Wed, 5 May 2021 08:56:11 -0400 Subject: [PATCH 4/5] Exclude .github/ and CI files from exported archives These are only relevant for GitHub, not published tarballs. --- .gitattributes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitattributes b/.gitattributes index cb5934a2a1..1deb4dea49 100755 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,7 @@ *.h linguist-language=C src/nvim/testdir/test42.in diff +.github/ export-ignore +ci/ export-ignore +.travis.yml export-ignore +codecov.yml export-ignore +.builds/ export-ignore From 3bebe6012170c65922cc1673361e5d5d16fa6e36 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Wed, 5 May 2021 09:02:22 -0400 Subject: [PATCH 5/5] ci(gha): Run ci workflow for PRs into release branches --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c2c38d88c..86be9adabb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,9 @@ on: push: branches: '**' pull_request: - branches: 'master' + branches: + - 'master' + - 'release-[0-9]+.[0-9]+' jobs: unixish: