fix: styling and failing test #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This GitHub Actions workflow is designed to run the Cargo Release process | |
# whenever there is a push to the 'main' branch or the workflow is manually triggered. | |
name: Run Cargo Release | |
on: | |
push: | |
branches: | |
- main # Trigger the workflow on push events to the 'main' branch | |
workflow_dispatch: # Allow manual triggering of the workflow | |
jobs: | |
cargo_release: | |
name: Run Cargo Release | |
runs-on: windows-latest # Use the latest Windows runner | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 # Checkout the repository using the specified action | |
- name: Setup Lua/LuaJIT | |
uses: xpol/setup-lua@v0.3 | |
with: | |
lua-version: '5.1' | |
- name: Set Up Rust | |
uses: actions-rs/toolchain@v1 # Set up the Rust toolchain | |
with: | |
toolchain: stable # Use the stable Rust toolchain | |
override: true # Override any existing toolchain configuration | |
- name: Build | |
run: cargo build | |
- name: Test | |
run: lua5.1 ltests/test.lua | |
- name: Install Cargo Release | |
run: cargo install cargo-release # Install the cargo-release tool | |
- name: Run Cargo Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use the GitHub token for authentication | |
run: cargo release --execute --no-publish # Run the cargo release command only creating a new tag but not publishing to crates.io |