Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
Use Marlu 0.8.0, Birli 0.8.0, mwa_hyperbeam 0.5.0, and update other
dependencies. Bump the MSRV.

Support mwaf file version 2.0 and add many more tests. Rename `AOFlags`
to `MwafFlags`; mwaf files might be used with other flaggers in the
future. Fix another cotter bug that means it lies about how many flags
are present.

Use `LmnRime` instead of `LMN`. Use Marlu time and freq. weight factors.

Fix clippy lints. Tweak CI scripts.
  • Loading branch information
cjordan committed Aug 24, 2022
1 parent 697364b commit fd10a6b
Show file tree
Hide file tree
Showing 72 changed files with 2,397 additions and 2,271 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0

jobs:
coverage:
Expand Down Expand Up @@ -44,29 +45,28 @@ jobs:
env:
DEBIAN_FRONTEND: noninteractive

- name: Install nightly-2022-01-14 toolchain
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2022-01-14
toolchain: stable
override: true
components: llvm-tools-preview

- name: install cargo-llvm-cov
run: cargo +nightly-2022-01-14 install cargo-llvm-cov
run: cargo install cargo-llvm-cov

- name: Get the beam HDF5 file
run: sudo curl http://ws.mwatelescope.org/static/mwa_full_embedded_element_pattern.h5 -o /mwa_full_embedded_element_pattern.h5
run: curl http://ws.mwatelescope.org/static/mwa_full_embedded_element_pattern.h5 -o mwa_full_embedded_element_pattern.h5

- name: Generate test lcov coverage into coverage/ dir
run: |
export PATH="${HOME}/.cargo/bin:${PATH}"
export MWA_BEAM_FILE=$(realpath mwa_full_embedded_element_pattern.h5)
mkdir -p coverage
cargo +nightly-2022-01-14 llvm-cov --all-targets --workspace --exclude mwa_hyperdrive_cuda --no-default-features --locked --lcov --output-path coverage/coverage.lcov
cargo llvm-cov --all-targets --workspace --exclude mwa_hyperdrive_cuda --no-default-features --locked --lcov --output-path coverage/coverage.lcov
# this uses the result of the previous run to generate a text summary
cargo +nightly-2022-01-14 llvm-cov --no-run
env:
MWA_BEAM_FILE: /mwa_full_embedded_element_pattern.h5
cargo llvm-cov --no-run
- name: Upload reports to codecov.io
uses: codecov/codecov-action@v2
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,19 @@ jobs:
with:
cuda: '11.2.0'

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Build and Tar
run: |
curl https://raw.githubusercontent.com/HDFGroup/hdf5/develop/COPYING -o COPYING-hdf5
curl https://raw.githubusercontent.com/liberfa/erfa/master/LICENSE -o LICENSE-erfa
curl https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/License.txt -o LICENSE-cfitsio
cp cuda/LICENSE-NVIDIA README.md
cp cuda/LICENSE-NVIDIA .
cp .github/workflows/releases-readme.md README.md
cargo build --release --locked --no-default-features --features=hdf5-static,erfa-static,cfitsio-static
Expand Down
Loading

0 comments on commit fd10a6b

Please sign in to comment.