Skip to content

Binary Release (single) #6

Binary Release (single)

Binary Release (single) #6

name: Binary Release (single)
on:
workflow_dispatch:
inputs:
mlton-version:
required: true
type: string
runner:
required: true
type: string
binary-release-suffix:
required: false
type: string
workflow_call:
inputs:
mlton-version:
required: true
type: string
runner:
required: true
type: string
binary-release-suffix:
required: false
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(inputs.runner, 'windows') }}
run: git config --global core.autocrlf false
shell: bash
- name: Install msys2 (windows)
if: ${{ startsWith(inputs.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
uses: ./.github/actions/binary-release/download-and-unpack-source-release
with:
mlton-version: ${{ inputs.mlton-version }}
runner: ${{ inputs.runner }}
- name: Make binary release
uses: ./.github/actions/binary-release/make-binary-release
with:
mlton-version: ${{ inputs.mlton-version }}
runner: ${{ inputs.runner }}
binary-release-suffix: ${{ inputs.binary-release-suffix }}
- name: Upload binary release
run: gh release upload on-${MLTON_VERSION}-release mlton-${MLTON_VERSION}*.tgz --clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}