Skip to content

fix ref in workflow

fix ref in workflow #2

Workflow file for this run

on:

Check failure on line 1 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yaml

Invalid workflow file

(Line: 34, Col: 13): Unexpected symbol: '"Windows"'. Located at position 14 within expression: runner.os == "Windows", (Line: 38, Col: 13): Unexpected symbol: '"Windows"'. Located at position 14 within expression: runner.os != "Windows", (Line: 44, Col: 13): Unexpected symbol: '$RELEASE'. Located at position 1 within expression: $RELEASE != "" && $RELEASE != "no"
workflow_dispatch: # run the workflow manually
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true # Cancel any in-progress runs of this workflow when a new run is triggered on the same ref (branch or tag)
permissions:
contents: write
env:
RELEASE: "v3.3.0-draft"
name: bundle
jobs:
build:
name: Bundle mimalloc release
runs-on: ${{ matrix.os }}
strategy:
matrix:
# we build on the oldest ubuntu version for better binary compatibility.
branch: [dev,dev2,dev3]
os: [windows-latest, macOS-latest, ubuntu-22.04]
steps:
# Checkout: https://github.com/actions/checkout
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ matrix.branch }}
# Build
- name: Build (Windows)
if: runner.os == "Windows"
run: ./bin/bundle.bat
- name: Build (Linux, macOS)
if: runner.os != "Windows"
run: ./bin/bundle.sh
# Create a release: https://github.com/softprops/action-gh-release (MIT license)
- name: Release
uses: softprops/action-gh-release@v2
if: $RELEASE != "" && $RELEASE != "no"
with:
name: $RELEASE
draft: true
files: |
out/bundle/*.tar.gz
# body_path: release.md