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

v0.0.5 #132

Merged
merged 10 commits into from
Nov 11, 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
33 changes: 20 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,40 @@
name: build-expander-exec
name: build-release-binary
on:
release:
types: [released]
types: [published]

env:
RUSTFLAGS: "-Dwarnings"
RUSTFLAGS: "-Dwarnings -C target-cpu=native"
RUST_BACKTRACE: 1

jobs:
build:
strategy:
matrix:
platform: [macos, 7950x3d]
include:
- platform: macos
ci_image: macos-latest
flags: ''
- platform: linux-avx2
ci_image: ubuntu-latest
flags: 'RUSTFLAGS="-C target-feature=+avx2"'
runs-on: ${{ matrix.ci_image }}
- os: macos-latest
binary_name: expander-macos
- os: 7950x3d
feature: avx2
binary_name: expander-linux-avx2
- os: 7950x3d
feature: avx512f
binary_name: expander-linux-avx512
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
# The prefix cache key, this can be changed to start a new cache manually.
prefix-key: "mpi-v5.0.5" # update me if brew formula changes to a new version
- name: Install MPI
run: python3 ./scripts/install.py
- name: Set RUSTFLAGS for AVX
if: matrix.feature != ''
run: echo "RUSTFLAGS=$RUSTFLAGS -C target-feature=+${{ matrix.feature }}" >> $GITHUB_ENV
- name: Prepare binary
run: ${{ matrix.flags }} cargo build --release --bin expander-exec
run: cargo build --release --bin expander-exec
- name: Upload release asset
uses: actions/github-script@v6
with:
Expand All @@ -37,6 +44,6 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
release_id: ${{ github.event.release.id }},
name: 'expander-exec-${{ matrix.platform }}',
name: '${{ matrix.binary_name }}',
data: await fs.readFile('target/release/expander-exec')
});
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
cargo run --bin=dev-setup --release
cargo build --all-features --release
cargo test --all-features --release --workspace
./scripts/test_recursion.py

gkr-e2e:
name: Benchmark (${{ matrix.os }}${{ matrix.feature != '' && format(', {0}', matrix.feature) || '' }}, ${{ matrix.field }})
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/nightly_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-09-01
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
# The prefix cache key, this can be changed to start a new cache manually.
prefix-key: "mpi-v5.0.5" # update me if brew formula changes to a new version

- name: Set up Go
uses: actions/setup-go@v2
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ output.txt

# idea
.idea/
/data

# vscode settings
.vscode/
Loading
Loading