Skip to content

Huly Code

Huly Code #11

Workflow file for this run

name: Huly Code
on:
workflow_dispatch:
schedule:
# daily at 4AM for the master branch
- cron: '0 4 * * *'
#push:
# # for each release
# tags:
# - 'huly/*'
env:
artifacts_dir: 'out/huly-code/artifacts'
jobs:
# a single job for all OSes cannot be used due to free disk space lack on runners
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: ./.github/actions/build_ide
with:
os: linux
arch: x64
extension: tar.gz
- uses: ./.github/actions/upload_ide
with:
os: linux
extension: tar.gz
artifacts_dir: ${{env.artifacts_dir}}
build-windows:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: ./.github/actions/build_ide
with:
os: windows
arch: x64
extension: exe
- uses: ./.github/actions/upload_ide
with:
os: windows
extension: exe
artifacts_dir: ${{env.artifacts_dir}}
build-macos:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: ./.github/actions/build_ide
with:
os: mac
arch: aarch64
extension: sit
- uses: ./.github/actions/upload_ide
with:
os: mac
extension: sit
artifacts_dir: ${{env.artifacts_dir}}
- name: Upload .dmg build scripts
uses: actions/[email protected]
with:
name: dmg-build-scripts
if-no-files-found: 'error'
retention-days: 1
path: ${{env.artifacts_dir}}/macos-dmg-build/
build-dmg:
runs-on: macos-latest
needs: build-macos
steps:
- uses: actions/[email protected]
with:
submodules: recursive
- name: Download .dmg build scripts
uses: actions/[email protected]
with:
name: dmg-build-scripts
- name: Download .sit
uses: actions/[email protected]
with:
name: mac-sit-unsigned
- name: Build .dmg
shell: bash
# language=bash
run: /bin/bash ./build.sh
- name: Upload .dmg
uses: ./.github/actions/upload_ide
with:
os: mac
extension: dmg
artifacts_dir: .