Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub CI: Update action versions #15

Merged
merged 2 commits into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 20 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: "Build ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Download bsc
uses: B-Lang-org/download-bsc@v1
Expand All @@ -27,7 +27,7 @@ jobs:
tar czf inst.tar.gz inst

- name: Upload artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }} build
path: inst.tar.gz
Expand All @@ -36,10 +36,11 @@ jobs:
strategy:
matrix:
os: [ macos-11, macos-12, macos-13 ]
fail-fast: false
name: "Build ${{ matrix.os }}"
runs-on: ${{ matrix. os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Download bsc
uses: B-Lang-org/download-bsc@v1
Expand All @@ -54,7 +55,7 @@ jobs:
tar czf inst.tar.gz inst

- name: Upload artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }} build
path: inst.tar.gz
Expand All @@ -63,10 +64,11 @@ jobs:
strategy:
matrix:
os: [ ubuntu-20.04, ubuntu-22.04 ]
fail-fast: false
name: "Build doc: ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
shell: bash
Expand All @@ -76,7 +78,7 @@ jobs:
make install-doc
tar czf inst.tar.gz inst
- name: Upload artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }} build doc
path: inst.tar.gz
Expand All @@ -85,10 +87,11 @@ jobs:
strategy:
matrix:
os: [ macos-11, macos-12, macos-13 ]
fail-fast: false
name: "Build doc: ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
shell: bash
Expand All @@ -101,7 +104,7 @@ jobs:
make install-doc
tar czf inst.tar.gz inst
- name: Upload artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }} build doc
path: inst.tar.gz
Expand All @@ -115,7 +118,7 @@ jobs:
runs-on: ${{ matrix.os }}
needs: build-ubuntu
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
shell: bash
Expand All @@ -140,7 +143,7 @@ jobs:
cp -r testing/bsc.bdw ../bsc-testsuite/testsuite/

- name: Download bdw
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ matrix.os }} build
- name: Install bdw
Expand All @@ -150,7 +153,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@v3
uses: actions/cache@v4
with:
path: ${{ GITHUB.WORKSPACE }}/ccache
key: ${{ matrix.os }}-ccache-${{ github.sha }}
Expand Down Expand Up @@ -202,7 +205,7 @@ jobs:
# Save test logs on failure so we can diagnose
- name: Archive test logs
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-logs-${{ matrix.os }}
path: logs.tar.gz
Expand All @@ -211,11 +214,12 @@ jobs:
strategy:
matrix:
os: [ macos-11, macos-12, macos-13 ]
fail-fast: false
name: "Test ${{ matrix.os }}"
runs-on: ${{ matrix. os }}
needs: build-macos
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
shell: bash
Expand All @@ -240,7 +244,7 @@ jobs:
cp -r testing/bsc.bdw ../bsc-testsuite/testsuite/

- name: Download bdw
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ matrix.os }} build
- name: Install bdw
Expand All @@ -250,7 +254,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@v3
uses: actions/cache@v4
with:
path: ${{ GITHUB.WORKSPACE }}/ccache
key: ${{ matrix.os }}-ccache-${{ github.sha }}
Expand Down Expand Up @@ -298,7 +302,7 @@ jobs:
# Save test logs on failure so we can diagnose
- name: Archive test logs
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-logs-${{ matrix.os }}
path: logs.tar.gz