Skip to content

back to lazy_static

back to lazy_static #8

Workflow file for this run

name: Build CJyafn Shared Object and Extensions
on:
push:
branches:
- stable
workflow_dispatch:
jobs:
build-so:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: stable
- name: Install latest rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build shared object
run: |
bash ./utils/build-linux-so.sh
- name: Artifact update
uses: actions/upload-artifact@v4
with:
name: linux-x64
if-no-files-found: error
path: target/release/libcjyafn.so
retention-days: 1
build-extensions:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: stable
- name: Install latest rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build extensions
run: |
cd jyafn-ext
make build
- name: Artifact update
uses: actions/upload-artifact@v4
with:
name: extensions-linux-x64
if-no-files-found: error
path: ./target/extensions/*.so
retention-days: 1
build-wheels:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: stable
- name: Install latest rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build wheels
run: |
bash ./utils/build-linux-wheels.sh
- name: Artifact update
uses: actions/upload-artifact@v4
with:
name: wheels-linux-x64
if-no-files-found: error
path: ./target/wheels/*.whl
retention-days: 1
build-dylib:
runs-on: macos-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: stable
- name: Install latest rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build shared object
run: |
make cjyafn
- name: Artifact update
uses: actions/upload-artifact@v4
with:
name: macos-arm64
if-no-files-found: error
path: target/release/libcjyafn.dylib
retention-days: 1
build-wheels-macos:
runs-on: macos-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: stable
- name: Install latest rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Prepare the machine
run: |
pip install maturin
- name: Build wheels
run: |
bash ./utils/build-macos-wheels.sh
- name: Artifact update
uses: actions/upload-artifact@v4
with:
name: wheels-macos-arm64
if-no-files-found: error
path: ./target/wheels/*.whl
retention-days: 1
build-extensions-macos:
runs-on: macos-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: stable
- name: Install latest rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build extensions
run: |
cd jyafn-ext
make build
- name: Artifact update
uses: actions/upload-artifact@v4
with:
name: extensions-macos-arm64
if-no-files-found: error
path: ./target/extensions/*.dylib
retention-days: 1
release:
needs:
- build-so
- build-wheels
- build-extensions
- build-dylib
- build-wheels-macos
- build-extensions-macos
runs-on: ubuntu-latest
steps:
- name: Download files
uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
*.so
*.dylib
*.whl
tag_name: commit-id=${{ github.sha }}
prerelease: false
make_latest: true