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

Update GitHub CI to use the new download-bsc action #14

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
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
59 changes: 34 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
- uses: actions/checkout@v3

- name: Download bsc
shell: bash
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ".github/workflows/get_latest_bsc.sh ${{ matrix.os }} "
uses: B-Lang-org/download-bsc@v1
with:
os: ${{ matrix.os }}
path: ../

- name: Build
run: |
export PATH=$PWD/../bsc/inst/bin:$PATH
export PATH=$PWD/../bsc/bin:$PATH
make install
tar czf inst.tar.gz inst

Expand All @@ -40,15 +40,16 @@ jobs:
runs-on: ${{ matrix. os }}
steps:
- uses: actions/checkout@v3

- name: Download bsc
shell: bash
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ".github/workflows/get_latest_bsc.sh ${{ matrix.os }} "
uses: B-Lang-org/download-bsc@v1
with:
os: ${{ matrix.os }}
path: ../

- name: Build
run: |
export PATH=$PWD/../bsc/inst/bin:$PATH
export PATH=$PWD/../bsc/bin:$PATH
make install
tar czf inst.tar.gz inst

Expand All @@ -66,6 +67,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- name: Install dependencies
shell: bash
run: "sudo .github/workflows/install_dependencies_doc_ubuntu.sh"
Expand All @@ -87,6 +89,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- name: Install dependencies
shell: bash
run: ".github/workflows/install_dependencies_doc_macos.sh"
Expand Down Expand Up @@ -120,15 +123,18 @@ jobs:

# Can this be cached from the previous job?
- name: Download bsc
shell: bash
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ".github/workflows/get_latest_bsc.sh ${{ matrix.os }} "
id: download
uses: B-Lang-org/download-bsc@v1
with:
os: ${{ matrix.os }}
path: ../

# This ought to be downloaded at the same version as BSC?
# Checkout the testsuite at the same version
- name: Download testsuite
run: |
git clone https://github.com/B-Lang-org/bsc ../bsc-testsuite
git clone -n https://github.com/B-Lang-org/bsc ../bsc-testsuite
cd ../bsc-testsuite
git checkout ${{ steps.download.outputs.commit }}
- name: Add bdw tests to testsuite
run: |
cp -r testing/bsc.bdw ../bsc-testsuite/testsuite/
Expand Down Expand Up @@ -174,7 +180,7 @@ jobs:

cd ../bsc-testsuite/testsuite

export TEST_RELEASE=$PWD/../../bsc/inst
export TEST_RELEASE=$PWD/../../bsc
export TEST_CONTRIB=

export BDW=$PWD/../../bdw/inst/bin/bdw
Expand Down Expand Up @@ -217,15 +223,18 @@ jobs:

# Can this be cached from the previous job?
- name: Download bsc
shell: bash
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ".github/workflows/get_latest_bsc.sh ${{ matrix.os }} "
id: download
uses: B-Lang-org/download-bsc@v1
with:
os: ${{ matrix.os }}
path: ../

# This ought to be downloaded at the same version as BSC?
# Checkout the testsuite at the same version
- name: Download testsuite
run: |
git clone https://github.com/B-Lang-org/bsc ../bsc-testsuite
git clone -n https://github.com/B-Lang-org/bsc ../bsc-testsuite
cd ../bsc-testsuite
git checkout ${{ steps.download.outputs.commit }}
- name: Add bdw tests to testsuite
run: |
cp -r testing/bsc.bdw ../bsc-testsuite/testsuite/
Expand Down Expand Up @@ -261,12 +270,12 @@ jobs:
trap ./archive_logs.sh EXIT

# Use -O0 for significantly faster C++ compiles (which more
# than make up for slower simulations).
# than make up for slower simulations)
export CXXFLAGS="-O0"

cd ../bsc-testsuite/testsuite

export TEST_RELEASE=$PWD/../../bsc/inst
export TEST_RELEASE=$PWD/../../bsc
export TEST_CONTRIB=

export BDW=$PWD/../../bdw/inst/bin/bdw
Expand Down
60 changes: 0 additions & 60 deletions .github/workflows/get_latest_bsc.sh

This file was deleted.