From d04cfa35396301e7121ba48f63e6504d0937fa5e Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 17 Nov 2024 14:33:32 +0100 Subject: [PATCH 1/4] ci(lua): fix feature --- .github/workflows/lua.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lua.yml b/.github/workflows/lua.yml index 85f19ff..43a065a 100644 --- a/.github/workflows/lua.yml +++ b/.github/workflows/lua.yml @@ -38,7 +38,7 @@ jobs: - uses: arduino/setup-protoc@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - - run: cargo build --release --features=luajit + - run: cargo build --release --features=lua - id: previoustag uses: "WyriHaximus/github-action-get-previous-tag@v1" with: From 5f1d5e4a35676b06089cd54397ca8cb6988d6559 Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 17 Nov 2024 14:33:47 +0100 Subject: [PATCH 2/4] ci(py): fix features --- .github/workflows/python.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 8ad813f..b42478e 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -91,9 +91,11 @@ jobs: matrix: versions: - python: 3.8 - features: py-noabi + extra: '' + name: 'py' - python: 3.x - features: py + extra: '--no-default-features' + name: 'py-noabi' platform: - runner: windows-latest target: x64 @@ -114,12 +116,12 @@ jobs: working-directory: dist/py target: ${{ matrix.platform.target }} container: 'off' - args: --release --out ./build --features ${{ matrix.versions.features }} + args: --release --out ./build ${{ matrix.versions.extra }} --features py sccache: 'true' - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: codemp-${{ matrix.versions.features }}-windows-${{ matrix.platform.target }} + name: codemp-${{ matrix.versions.name }}-windows-${{ matrix.platform.target }} path: dist/py/build macos: From 5b6b522bd1dc583a39fc1eb30ab1b9b5e5d324c4 Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 17 Nov 2024 14:33:57 +0100 Subject: [PATCH 3/4] ci: release on tag not with branch stable --- .github/workflows/java.yml | 4 ++-- .github/workflows/javascript.yml | 4 ++-- .github/workflows/lua.yml | 4 ++-- .github/workflows/python.yml | 4 ++-- .github/workflows/rust.yml | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 9303b59..41d2dd4 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -2,8 +2,8 @@ name: java on: push: - branches: - - stable + tags: + - 'v*.*.*' permissions: contents: read diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml index 24e9e4e..2666e47 100644 --- a/.github/workflows/javascript.yml +++ b/.github/workflows/javascript.yml @@ -2,8 +2,8 @@ name: javascript on: push: - branches: - - stable + tags: + - 'v*.*.*' permissions: contents: read diff --git a/.github/workflows/lua.yml b/.github/workflows/lua.yml index 43a065a..8f7bdf8 100644 --- a/.github/workflows/lua.yml +++ b/.github/workflows/lua.yml @@ -2,8 +2,8 @@ name: lua on: push: - branches: - - stable + tags: + - 'v*.*.*' permissions: contents: read diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index b42478e..a136221 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -7,8 +7,8 @@ name: python on: push: - branches: - - stable + tags: + - 'v*.*.*' permissions: contents: read diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d1eeacb..b49548f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,8 +2,8 @@ name: rust on: push: - branches: - - stable + tags: + - 'v*.*.*' env: CARGO_TERM_COLOR: always From 3e25efdf6d62f6d57afce1952aba6a3e33c66c9f Mon Sep 17 00:00:00 2001 From: zaaarf Date: Sun, 17 Nov 2024 14:40:39 +0100 Subject: [PATCH 4/4] ci: better regex for tags --- .github/workflows/java.yml | 2 +- .github/workflows/javascript.yml | 2 +- .github/workflows/lua.yml | 2 +- .github/workflows/python.yml | 2 +- .github/workflows/rust.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 41d2dd4..d498afc 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -3,7 +3,7 @@ name: java on: push: tags: - - 'v*.*.*' + - 'v[0-9]+.[0-9]+.[0-9]+' permissions: contents: read diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml index 2666e47..c1436d5 100644 --- a/.github/workflows/javascript.yml +++ b/.github/workflows/javascript.yml @@ -3,7 +3,7 @@ name: javascript on: push: tags: - - 'v*.*.*' + - 'v[0-9]+.[0-9]+.[0-9]+' permissions: contents: read diff --git a/.github/workflows/lua.yml b/.github/workflows/lua.yml index 8f7bdf8..f5c0c89 100644 --- a/.github/workflows/lua.yml +++ b/.github/workflows/lua.yml @@ -3,7 +3,7 @@ name: lua on: push: tags: - - 'v*.*.*' + - 'v[0-9]+.[0-9]+.[0-9]+' permissions: contents: read diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index a136221..4c4ca50 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -8,7 +8,7 @@ name: python on: push: tags: - - 'v*.*.*' + - 'v[0-9]+.[0-9]+.[0-9]+' permissions: contents: read diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b49548f..0e93f37 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -3,7 +3,7 @@ name: rust on: push: tags: - - 'v*.*.*' + - 'v[0-9]+.[0-9]+.[0-9]+' env: CARGO_TERM_COLOR: always