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: Ensure that brew/apt-get is updated before installing #687

Merged
merged 2 commits into from
Apr 6, 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
11 changes: 6 additions & 5 deletions .github/workflows/build-and-test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
build-macOS:
name: "Build: ${{ inputs.os }} ghc-${{ inputs.ghc_version }}"
runs-on: ${{ inputs.os }}
timeout-minutes: 30
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
- name: Checkout submodules
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
test-macOS:
name: "Test ${{ inputs.os }} ghc-${{ inputs.ghc_version }}"
runs-on: ${{ inputs.os }}
timeout-minutes: 240
timeout-minutes: 300
needs: build-macos
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -189,13 +189,14 @@ jobs:
test-toooba-macOS:
name: "Test Toooba ${{ inputs.os }} ghc-${{ inputs.ghc_version }}"
runs-on: ${{ inputs.os }}
timeout-minutes: 60
timeout-minutes: 120
needs: build-macos
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
brew update
brew install ccache libelf

- name: Download bsc
Expand Down Expand Up @@ -266,7 +267,7 @@ jobs:
test-contrib-macOS:
name: "Test bsc-contrib ${{ inputs.os }} ghc-${{ inputs.ghc_version }}"
runs-on: ${{ inputs.os }}
timeout-minutes: 30
timeout-minutes: 90
needs: build-macos
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -343,7 +344,7 @@ jobs:
test-bdw-macOS:
name: "Test bdw ${{ inputs.os }} ghc-${{ inputs.ghc_version }}"
runs-on: ${{ inputs.os }}
timeout-minutes: 30
timeout-minutes: 90
needs: build-macos
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-and-test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ jobs:

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y ccache libelf-dev

- name: Download bsc
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
fail-fast: false
name: "Build doc: ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
timeout-minutes: 60
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- name: Install dependencies
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/install_dependencies_doc_macos.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

brew update

brew install mactex-no-gui
1 change: 1 addition & 0 deletions .github/workflows/install_dependencies_doc_ubuntu.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash

apt-get update

apt-get install -y \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/install_dependencies_macos.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

brew update

# ccache is not required to build bsc, but we use it in build.yml to improve
# the build performance by caching C++ obj files across multiple builds.
brew install \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash

apt-get update

apt-get install -y \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/install_dependencies_testsuite_macos.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

brew update

brew install \
ccache \
deja-gnu \
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/install_dependencies_ubuntu.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash

apt-get update

# ccache is not required to buid bsc, but we use it in build.yml to improve
Expand Down