|
8 | 8 | permissions: |
9 | 9 | contents: read |
10 | 10 |
|
11 | | -env: |
12 | | - # Minimum supported Go toolchain |
13 | | - ACTION_MINIMUM_TOOLCHAIN: "1.12.x" |
14 | | - |
15 | 11 | jobs: |
16 | 12 | build: |
17 | 13 | name: "Build" |
18 | 14 | runs-on: ubuntu-latest |
19 | 15 | strategy: |
20 | 16 | matrix: |
21 | | - go: ['1.17.x', '1.18.x', '1.19.x', '1.20.x'] |
| 17 | + go: ['1.12.x', '1.23.x', '1.24.x'] |
22 | 18 | steps: |
23 | 19 | - run: sudo apt-get -qq update |
24 | 20 | - name: Install libsystemd-dev |
25 | 21 | run: sudo apt-get install libsystemd-dev |
26 | | - - uses: actions/checkout@v3 |
| 22 | + - uses: actions/checkout@v4 |
27 | 23 | - name: Setup go |
28 | | - uses: actions/setup-go@v4 |
| 24 | + uses: actions/setup-go@v5 |
29 | 25 | with: |
30 | 26 | go-version: ${{ matrix.go }} |
31 | 27 | - name: Go fmt |
|
36 | 32 | run: ./scripts/ci-runner.sh build_tests |
37 | 33 | - name: Go vet |
38 | 34 | run: ./scripts/ci-runner.sh go_vet |
39 | | - build-minimum: |
40 | | - name: "Build on minimum supported toolchain" |
41 | | - runs-on: ubuntu-latest |
42 | | - steps: |
43 | | - - run: sudo apt-get -qq update |
44 | | - - name: Install libsystemd-dev |
45 | | - run: sudo apt-get install libsystemd-dev |
46 | | - - uses: actions/checkout@v3 |
47 | | - - name: Setup go |
48 | | - uses: actions/setup-go@v4 |
49 | | - with: |
50 | | - go-version: ${{ env['ACTION_MINIMUM_TOOLCHAIN'] }} |
51 | | - - name: Go fmt |
52 | | - run: ./scripts/ci-runner.sh go_fmt |
53 | | - - name: Go build (source) |
54 | | - run: ./scripts/ci-runner.sh build_source |
55 | | - - name: Go build (tests) |
56 | | - run: ./scripts/ci-runner.sh build_tests |
57 | | - - name: Go vet |
58 | | - run: ./scripts/ci-runner.sh go_vet |
0 commit comments