Skip to content

Commit

Permalink
Updated all CI to use updated actions. Removed optimised x86_64 build…
Browse files Browse the repository at this point in the history
…s from macos release
  • Loading branch information
gsleap committed Apr 15, 2024
1 parent 3823218 commit a876709
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 33 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,13 @@ jobs:
cd ..
sudo ldconfig
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
- name: Install stable minimal toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
override: true
components: llvm-tools

- name: Install cargo-llvm-cov
run: cargo install cargo-llvm-cov

components: llvm-tools,cargo-llvm-cov

- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
Expand Down
28 changes: 17 additions & 11 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@ jobs:
if: ${{ startsWith(matrix.os, 'macOS') }}
run: |
brew install automake autoconf
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install stable, minimal toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable

- name: Add Python 3.8
if: ${{ matrix.os != 'macOS-14' }}
uses: actions/setup-python@v5
continue-on-error: true
with:
python-version: "3.8"

- name: Add Python 3.9
if: ${{ matrix.os != 'macOS-14' }}
uses: actions/setup-python@v5
continue-on-error: true
with:
Expand Down Expand Up @@ -99,7 +99,13 @@ jobs:
# determine which target cpus for rustc to build for from machine type
export ARCH="$(uname -m)"
case $ARCH in
x86_64) export TARGETS="x86-64 x86-64-v2 x86-64-v3" ;;
x86_64)
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
export TARGETS="x86-64 x86-64-v2 x86-64-v3"
else
export TARGETS="x86-64"
fi
;;
arm64) export TARGETS="apple-m1" ;;
*) echo "unknown arch (uname -m) $ARCH"; exit 1 ;;
esac
Expand Down Expand Up @@ -146,17 +152,17 @@ jobs:
needs: [build-release]
steps:
- name: Download Linux artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: ubuntu-latest.tar.gz

- name: Download MacOS arm64 artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: macOS-14.tar.gz

- name: Download MacOS x86_64 artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: macOS-latest.tar.gz

Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/run_python_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ jobs:
run: |
brew install automake autoconf
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install stable minimal toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable

- name: install cfitsio
env:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@ jobs:
run: |
brew install automake autoconf
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
- name: Install stable minimal toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
override: true

- name: install cfitsio
env:
Expand Down

0 comments on commit a876709

Please sign in to comment.