Skip to content

Commit

Permalink
GitHub CI: Update the OS and action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
quark17 committed Jan 2, 2024
1 parent 5b61fa8 commit 390d4c0
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:
build-ubuntu:
strategy:
matrix:
os: [ ubuntu-18.04, ubuntu-20.04 ]
os: [ ubuntu-20.04, ubuntu-22.04 ]
fail-fast: false
name: "Build ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Download bsc
shell: bash
Expand All @@ -35,16 +35,16 @@ jobs:
build-macOS:
strategy:
matrix:
os: [ macos-10.15 ]
os: [ macos-11, macos-12, macos-13 ]
name: "Build ${{ matrix.os }}"
runs-on: ${{ matrix. os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Download bsc
shell: bash
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ".github/workflows/get_latest_bsc.sh 'macos-10.13+' "
run: ".github/workflows/get_latest_bsc.sh ${{ matrix.os }} "

- name: Build
run: |
Expand All @@ -61,11 +61,11 @@ jobs:
build-doc-ubuntu:
strategy:
matrix:
os: [ ubuntu-18.04, ubuntu-20.04 ]
os: [ ubuntu-20.04, ubuntu-22.04 ]
name: "Build doc: ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install dependencies
shell: bash
run: "sudo .github/workflows/install_dependencies_doc_ubuntu.sh"
Expand All @@ -82,11 +82,11 @@ jobs:
build-doc-macOS:
strategy:
matrix:
os: [ macos-10.15 ]
os: [ macos-11, macos-12, macos-13 ]
name: "Build doc: ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install dependencies
shell: bash
run: ".github/workflows/install_dependencies_doc_macos.sh"
Expand All @@ -106,13 +106,13 @@ jobs:
test-ubuntu:
strategy:
matrix:
os: [ ubuntu-18.04, ubuntu-20.04 ]
os: [ ubuntu-20.04, ubuntu-22.04 ]
fail-fast: false
name: "Test ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
needs: build-ubuntu
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install dependencies
shell: bash
Expand All @@ -134,7 +134,7 @@ jobs:
cp -r testing/bsc.bdw ../bsc-testsuite/testsuite/
- name: Download bdw
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: ${{ matrix.os }} build
- name: Install bdw
Expand All @@ -144,7 +144,7 @@ jobs:
# in the key so that a new cache file is generated after every
# successful build, and have the restore-key use the most recent.
- name: CCache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ GITHUB.WORKSPACE }}/ccache
key: ${{ matrix.os }}-ccache-${{ github.sha }}
Expand Down Expand Up @@ -196,20 +196,20 @@ jobs:
# Save test logs on failure so we can diagnose
- name: Archive test logs
if: failure()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: test-logs-${{ matrix.os }}
path: logs.tar.gz

test-macOS:
strategy:
matrix:
os: [ macos-10.15 ]
os: [ macos-11, macos-12, macos-13 ]
name: "Test ${{ matrix.os }}"
runs-on: ${{ matrix. os }}
needs: build-macos
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install dependencies
shell: bash
Expand All @@ -220,7 +220,7 @@ jobs:
shell: bash
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ".github/workflows/get_latest_bsc.sh 'macos-10.13+' "
run: ".github/workflows/get_latest_bsc.sh ${{ matrix.os }} "

# This ought to be downloaded at the same version as BSC?
- name: Download testsuite
Expand All @@ -231,7 +231,7 @@ jobs:
cp -r testing/bsc.bdw ../bsc-testsuite/testsuite/
- name: Download bdw
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: ${{ matrix.os }} build
- name: Install bdw
Expand All @@ -241,7 +241,7 @@ jobs:
# in the key so that a new cache file is generated after every
# successful build, and have the restore-key use the most recent.
- name: CCache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ GITHUB.WORKSPACE }}/ccache
key: ${{ matrix.os }}-ccache-${{ github.sha }}
Expand Down Expand Up @@ -289,7 +289,7 @@ jobs:
# Save test logs on failure so we can diagnose
- name: Archive test logs
if: failure()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: test-logs-${{ matrix.os }}
path: logs.tar.gz

0 comments on commit 390d4c0

Please sign in to comment.