Binary Release (single) #1
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
name: Binary Release (single) | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
mlton-version: | ||
required: true | ||
type: string | ||
runner: | ||
required: true | ||
type: string | ||
binary-release-suffix: | ||
required: true | ||
type: string | ||
workflow_call: | ||
inputs: | ||
mlton-version: | ||
required: true | ||
type: string | ||
runner: | ||
required: true | ||
type: string | ||
binary-release-suffix: | ||
required: true | ||
type: string | ||
jobs: | ||
binary-release-single: | ||
runs-on: ${{ inputs.runner }} | ||
env: | ||
MLTON_VERSION: ${{ inputs.mlton-version }} | ||
MLTON_BINARY_RELEASE_SUFFIX: ${{ inputs.binary-release-suffix }} | ||
steps: | ||
- name: Configure git (windows) | ||
if: ${{ startsWith(matrix.runner, 'windows') }} | ||
run: git config --global core.autocrlf false | ||
shell: bash | ||
- name: Install msys2 (windows) | ||
if: ${{ startsWith(matrix.runner, 'windows') }} | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: MINGW64 | ||
update: false | ||
install: >- | ||
base-devel | ||
git | ||
pactoys | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
sparse-checkout: .github | ||
ref: workflow-updates | ||
- name: Install bootstrap dependencies | ||
uses: ./.github/actions/install-bootstrap-dependencies | ||
with: | ||
runner: ${{ inputs.runner }} | ||
install-llvm: false | ||
- name: Download and unpack source release | ||
run: | | ||
curl -O -L https://github.com/${{ github.repository }}/releases/download/on-${MLTON_VERSION}-release/mlton-${MLTON_VERSION}.src.tgz | ||
tar xzf mlton-${MLTON_VERSION}.src.tgz | ||
rm mlton-${MLTON_VERSION}.src.tgz | ||
mv mlton-${MLTON_VERSION}/* . | ||
rmdir mlton-${MLTON_VERSION} | ||
shell: ${{ (startsWith(inputs.runner, 'windows') && 'msys2 {0}') || 'bash' }} | ||
Check failure on line 70 in .github/workflows/binary-release-single.yml GitHub Actions / Binary Release (single)Invalid workflow file
|
||
- name: Make binary release | ||
run: | | ||
PATH=$(pwd)/boot/bin:$PATH \ | ||
make \ | ||
OLD_MLTON_RUNTIME_ARGS="ram-slop 0.90" \ | ||
OLD_MLTON_COMPILE_ARGS="" \ | ||
MLTON_RUNTIME_ARGS="ram-slop 0.90" \ | ||
MLTON_COMPILE_ARGS="" \ | ||
$( if [[ -n "$WITH_GMP_DIR" ]]; then echo "WITH_GMP_DIR=$WITH_GMP_DIR"; fi ) \ | ||
MLTON_BINARY_RELEASE_SUFFIX=$MLTON_BINARY_RELEASE_SUFFIX \ | ||
binary-release | ||
shell: ${{ (startsWith(inputs.runner, 'windows') && 'msys2 {0}') || 'bash' }} | ||
- name: Upload binary release | ||
run: gh release upload on-${MLTON_VERSION}-release mlton-${MLTON_VERSION}*.tgz --clobber | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |