Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Validate tag format
if: github.event_name == 'push'
run: |
TAG="${GITHUB_REF_NAME}"
if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.]+)?$ ]]; then
echo "::error::Invalid tag format: $TAG. Expected semver format (e.g., v1.0.0 or v1.0.0-rc.1)"
exit 1
fi
echo "✓ Tag format valid: $TAG"

- name: Install Lux
uses: lumen-oss/gh-actions-lux@v1
with:
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
install: >-
git
make
unzip
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-cmake
mingw-w64-ucrt-x86_64-lua
Expand All @@ -77,23 +78,22 @@ jobs:
with:
version: 0.28.0

- name: Install just
- name: Copy Lux to MSYS2 (Windows)
if: matrix.target == 'windows'
run: cp "/c/Program Files/lux/lx.exe" /usr/bin/lx.exe

- name: Install just (Unix)
if: matrix.target != 'windows'
uses: extractions/setup-just@v2

- name: Install just (Windows)
if: matrix.target == 'windows'
run: |
if [ "${{ matrix.target }}" = "linux" ]; then
mkdir -p /tmp/just
curl -L https://github.com/casey/just/releases/download/1.48.1/just-1.48.1-x86_64-unknown-linux-musl.tar.gz -o /tmp/just/just.tar.gz
tar -xzf /tmp/just/just.tar.gz -C /tmp/just
sudo mv /tmp/just/just /usr/local/bin/
rm -rf /tmp/just
elif [ "${{ matrix.target }}" = "macos" ]; then
brew install just
else
mkdir -p /tmp/just
curl -L https://github.com/casey/just/releases/download/1.48.1/just-1.48.1-x86_64-pc-windows-msvc.zip -o /tmp/just/just.zip
unzip /tmp/just/just.zip -d /tmp/just
mv /tmp/just/just.exe /usr/bin/
rm -rf /tmp/just
fi
mkdir -p /tmp/just
curl -L https://github.com/casey/just/releases/download/1.48.1/just-1.48.1-x86_64-pc-windows-msvc.zip -o /tmp/just/just.zip
unzip /tmp/just/just.zip -d /tmp/just
mv /tmp/just/just.exe /usr/bin/
rm -rf /tmp/just

- name: Build Executable
env:
Expand Down
16 changes: 2 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@ jobs:
sudo apt-get update
sudo apt-get install -y lua5.4 liblua5.4-dev cmake

- name: Install just
run: |
mkdir -p /tmp/just
curl -L https://github.com/casey/just/releases/download/1.48.1/just-1.48.1-x86_64-unknown-linux-musl.tar.gz -o /tmp/just/just.tar.gz
tar -xzf /tmp/just/just.tar.gz -C /tmp/just
sudo mv /tmp/just/just /usr/local/bin/
rm -rf /tmp/just
- uses: extractions/setup-just@v2

- name: Run tests
run: just test-ci
Expand All @@ -47,13 +41,7 @@ jobs:
with:
version: 0.28.0

- name: Install just
run: |
mkdir -p /tmp/just
curl -L https://github.com/casey/just/releases/download/1.48.1/just-1.48.1-x86_64-unknown-linux-musl.tar.gz -o /tmp/just/just.tar.gz
tar -xzf /tmp/just/just.tar.gz -C /tmp/just
sudo mv /tmp/just/just /usr/local/bin/
rm -rf /tmp/just
- uses: extractions/setup-just@v2

- name: Install GitHub CLI (if missing)
run: |
Expand Down
Loading