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

MRG: fix CI build & tests #325

Merged
merged 15 commits into from
May 9, 2024
42 changes: 21 additions & 21 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,48 +11,48 @@ jobs:
with:
fetch-depth: 0

- name: Install latest stable rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

- name: cache rust
uses: Swatinem/rust-cache@v2

- name: cache conda
uses: actions/cache@v4
env:
CACHE_NUMBER: 0
CACHE_NUMBER: 1
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}

- name: cache rust
uses: Swatinem/rust-cache@v2

- name: setup conda
uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: 3.11
python-version: 3.12
channels: conda-forge,bioconda
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
mamba-version: "*"
activate-environment: sourmash_dev
auto-activate-base: false
use-only-tar-bz2: true
# use-only-tar-bz2: true

- run: conda info
- run: conda list
- run: conda config --show

- run: mamba search rust

- name: install dependencies
shell: bash -l {0}
run: mamba install git compilers maturin pytest pandas
run: mamba install rust==1.75.0

- name: install dependencies 2
shell: bash -l {0}
run: mamba install compilers maturin pytest pandas

- name: Run cargo fmt
run: cargo fmt --all -- --check --verbose

- name: build
shell: bash -l {0}
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sourmash = { version = "0.13.1", features = ["branchwater"] }
serde_json = "1.0.116"
niffler = "2.4.0"
log = "0.4.14"
env_logger = "0.11.3"
env_logger = { version = "0.11.3", optional = true }
simple-error = "0.3.0"
anyhow = "1.0.82"
zip = { version = "0.6", default-features = false, features = ["deflate"] }
Expand All @@ -35,5 +35,5 @@ tempfile = "3.10.0"

[profile.release]
#target-cpu=native
lto = "thin"
#lto = "thin"
opt-level = 3