Skip to content

Commit

Permalink
bump to v29.0.0-rc.17 (#4)
Browse files Browse the repository at this point in the history
* bump to v29.0.0-rc.17

* update tools
  • Loading branch information
s5suzuki authored Jan 24, 2025
1 parent dc8e355 commit eb309a1
Show file tree
Hide file tree
Showing 15 changed files with 159 additions and 408 deletions.
32 changes: 3 additions & 29 deletions .github/actions/setup-build/action.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,12 @@
name: 'build tools setup action'
inputs:
os:
description: 'os'
required: true
default: ''
arch:
description: 'arch'
required: false
default: ''
runs:
using: "composite"
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 'stable'

- name: install cross
shell: bash
if: inputs.os == 'ubuntu-latest' && (inputs.arch == 'armv7' || inputs.arch == 'aarch64')
run: |
curl -L https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-unknown-linux-gnu.tar.gz > cross.tar.gz
tar -xzf cross.tar.gz
cp cross /usr/local/bin
cp cross-util /usr/local/bin
rm cross.tar.gz
- name: install aarch64-pc-windows-msvc target
shell: bash
if: inputs.os == 'windows-latest' && inputs.arch == 'aarch64'
run: |
rustup target install aarch64-pc-windows-msvc
- uses: taiki-e/install-action@v2
with:
tool: cargo-make
25 changes: 4 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,39 +29,22 @@ jobs:
test:
needs: changed-files
if: ${{ needs.changed-files.outputs.src == 'true' }}
name: test-on-${{ matrix.os }}-${{ matrix.arch }}
name: test-on-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
arch: x64
lint: true
- os: windows-latest
arch: aarch64
- os: ubuntu-latest
arch: x64
lint: true
- os: ubuntu-latest
arch: armv7
- os: ubuntu-latest
arch: aarch64
- os: macos-latest
arch: aarch64
lint: true
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/setup-build
- uses: taiki-e/install-action@v2
with:
os: ${{ matrix.os }}
arch: ${{ matrix.arch }}
- run: python3 build.py build --arch ${{ matrix.arch }}
shell: bash
- run: python3 build.py lint
if: ${{ matrix.lint == true }}
tool: cargo-nextest
- run: cargo make check
shell: bash

all-tests-passed:
Expand Down
25 changes: 6 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: |
python3 build.py util check-license
cargo make license
create-release:
needs: [license-check]
Expand Down Expand Up @@ -53,18 +50,9 @@ jobs:
- os: windows-latest
name: win
arch: x64
- os: windows-latest
name: win
arch: aarch64
- os: ubuntu-latest
name: linux
arch: x64
- os: ubuntu-latest
name: linux
arch: armv7
- os: ubuntu-latest
name: linux
arch: aarch64
- os: macos-latest
name: macos
arch: aarch64
Expand All @@ -83,14 +71,13 @@ jobs:
result-encoding: string
script: |
return 'autd3-'+context.payload.ref.replace(/refs\/tags\//, '')+'-${{ matrix.name }}-${{ matrix.arch }}';
- run: |
python3 build.py build --release --arch ${{ matrix.arch }}
Compress-Archive -Path LICENSE, bin, ThirdPartyNotice.txt -DestinationPath assets-shared.zip
- run: cargo make publish
- run: Compress-Archive -Path LICENSE, bin, ThirdPartyNotice.txt -DestinationPath assets-shared.zip
if: ${{ matrix.os == 'windows-latest' }}
- run: |
python3 build.py build --release --arch ${{ matrix.arch }}
tar -zcvf assets-shared.tar.gz bin LICENSE ThirdPartyNotice.txt
- run: tar -zcvf assets-shared.tar.gz bin LICENSE ThirdPartyNotice.txt
if: ${{ matrix.os != 'windows-latest' }}

- uses: actions/download-artifact@v4
with:
name: release_url
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "tools/autd3-license-check"]
path = tools/autd3-license-check
url = https://github.com/shinolab/autd3-license-check.git
[submodule "tools/autd3_build_utils"]
path = tools/autd3_build_utils
url = https://github.com/shinolab/autd3_build_utils.git
84 changes: 29 additions & 55 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "autd3capi-emulator"
version = "29.0.0-rc.16"
version = "29.0.0-rc.17"
authors = ["shun suzuki <suzuki@hapis.k.u-tokyo.ac.jp>"]
edition = "2021"
license = "MIT"
Expand All @@ -10,8 +10,8 @@ repository = "https://github.com/shinolab/autd3-capi-emulator"
crate-type = ["cdylib", "staticlib"]

[dependencies]
autd3capi-driver = { version = "=29.0.0-rc.16", default-features = false }
autd3-emulator = { version = "=29.0.0-rc.16", features = ["gpu", "inplace"], default-features = false }
autd3capi-driver = { version = "29.0.0-rc.17", default-features = false }
autd3-emulator = { version = "29.0.0-rc.17", features = ["gpu", "inplace"], default-features = false }
tracing-subscriber = { version = "=0.3.19", features = ["ansi", "env-filter"], default-features = false }
tracing = { version = "=0.1.41", default-features = false }
bytemuck = { version = "=1.21.0", default-features = false, features = ["derive"] }
Loading

0 comments on commit eb309a1

Please sign in to comment.