good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 964f8f76 authored by Alex Sharov's avatar Alex Sharov Committed by GitHub
Browse files

Pin OS version on CI, Add older os to CI (#1864)

parent 64d68bcc
Branches
Tags
No related merge requests found
...@@ -4,7 +4,7 @@ jobs: ...@@ -4,7 +4,7 @@ jobs:
tests: tests:
strategy: strategy:
matrix: matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ] os: [ ubuntu-16.04, ubuntu-20.04, macos-10.15, windows-2019 ] # list of os: https://github.com/actions/virtual-environments
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
...@@ -25,10 +25,10 @@ jobs: ...@@ -25,10 +25,10 @@ jobs:
path: ~/go/pkg/mod path: ~/go/pkg/mod
key: ${{ matrix.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ matrix.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Build (non-windows) - name: Build (non-windows)
if: matrix.os != 'windows-latest' if: matrix.os != 'windows-2019'
run: make all run: make all
- name: Build (windows) - name: Build (windows)
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-2019'
run: | run: |
go build -trimpath -o bin/tg.exe ./cmd/tg go build -trimpath -o bin/tg.exe ./cmd/tg
go build -trimpath -o bin/rpcdaemon.exe ./cmd/rpcdaemon go build -trimpath -o bin/rpcdaemon.exe ./cmd/rpcdaemon
...@@ -45,10 +45,10 @@ jobs: ...@@ -45,10 +45,10 @@ jobs:
skip-pkg-cache: true skip-pkg-cache: true
skip-build-cache: true skip-build-cache: true
- name: Test (non-windows) - name: Test (non-windows)
if: matrix.os != 'windows-latest' if: matrix.os != 'windows-2019'
run: make test run: make test
docker: docker:
runs-on: ubuntu-latest runs-on: ubuntu-18.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment