Skip to content

Fix: CoW compilation issues #12

Fix: CoW compilation issues

Fix: CoW compilation issues #12

Workflow file for this run

name: Release
on:
push:
branches: ["main"]
env:
BUILD_TYPE: Release
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
PYTHONUTF8: 1
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
packages: write
jobs:
versioning:
name: Update Version
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false
- name: Run TinySemVer
uses: ashvardanian/tinysemver@v2.1.1
with:
verbose: "true"
version-file: "VERSION"
update-version-in: |
Cargo.toml:^version = "(\d+\.\d+\.\d+)"
pyproject.toml:^version = "(\d+\.\d+\.\d+)"
Cargo.lock:^name = "stringwars"[\s\S]*?^version = "(\d+\.\d+\.\d+)"
dry-run: "false"
push: "true"
create-release: "true"
github-token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
rebase:
name: Rebase Dev. Branch
runs-on: ubuntu-24.04
if: github.ref == 'refs/heads/main'
needs: versioning
steps:
- name: Checkout the latest code
uses: actions/checkout@v5
with:
fetch-depth: 0
submodules: recursive
- name: Perform rebase
run: |
git fetch origin main
git checkout main-dev
git rebase origin/main
- name: Push changes
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
branch: main-dev
unprotect_reviews: True
force: True
test:
name: Test
runs-on: ubuntu-24.04
needs: versioning
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Install
uses: dtolnay/rust-toolchain@stable
- name: Check for warnings
run: cargo check --benches --all-features --all-targets
env:
RUSTFLAGS: "-C target-cpu=native"