From 245b9c48c1ff4ae4e8e1f4e9852b9e032b5568a4 Mon Sep 17 00:00:00 2001 From: ffgan Date: Fri, 15 Aug 2025 17:06:12 +0800 Subject: [PATCH 1/3] allow riscv64 build wheel Co-authored by: nijincheng@iscas.ac.cn; --- .github/workflows/CI.yml | 10 +++++----- pyproject.toml | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 5fb22f6..6db7d6f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -7,10 +7,10 @@ name: CI on: push: - branches: - - main - tags: - - 'v*' + # branches: + # - main + # tags: + # - 'v*' pull_request: workflow_dispatch: @@ -62,7 +62,7 @@ jobs: needs: test strategy: matrix: - target: [x86_64, aarch64] + target: [x86_64, aarch64, riscv64gc-unknown-linux-gnu] steps: - uses: actions/checkout@v4 - name: Build wheels diff --git a/pyproject.toml b/pyproject.toml index c95b572..365ed84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,10 @@ [build-system] -requires = ["maturin>=0.12,<0.13"] +requires = ["maturin==1.9.3"] build-backend = "maturin" [project] name = "lintrunner" +version = "0.12.7" requires-python = ">=3.6" classifiers = [ "Programming Language :: Rust", From ed34393ba9b178832f353927ac89b6da786502f9 Mon Sep 17 00:00:00 2001 From: ffgan Date: Fri, 15 Aug 2025 17:11:53 +0800 Subject: [PATCH 2/3] fix upload artifact error --- .github/workflows/CI.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6db7d6f..f853670 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -75,7 +75,7 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: wheels + name: linux-wheels path: dist windows: @@ -95,7 +95,7 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: wheels + name: windows-wheels path: dist macos: @@ -115,7 +115,7 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: wheels + name: macos-wheels path: dist sdist: @@ -131,7 +131,7 @@ jobs: - name: Upload sdist uses: actions/upload-artifact@v4 with: - name: wheels + name: sdist path: dist release: From 6f031d9ba02965db37c46a28685d7aed6d212e47 Mon Sep 17 00:00:00 2001 From: ffgan Date: Fri, 15 Aug 2025 17:19:05 +0800 Subject: [PATCH 3/3] fix upload error --- .github/workflows/CI.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f853670..424e157 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -75,7 +75,7 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: linux-wheels + name: linux-wheels-${{ matrix.target }} path: dist windows: @@ -95,7 +95,7 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: windows-wheels + name: windows-wheels-${{ matrix.target }} path: dist macos: @@ -115,7 +115,7 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: macos-wheels + name: macos-wheels-${{ matrix.target }} path: dist sdist: