Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automation: new Build Release GitHub workflow #1552

Merged
merged 1 commit into from
Feb 7, 2024
Merged
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
51 changes: 51 additions & 0 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build Release

on:
# Manual trigger only
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# TODO: ubuntu-latest
os: [macos-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Dependencies
run: |
# if [ "$RUNNER_OS" == "Linux" ]; then
# sudo apt-get install libgc-dev
# fi
if [ "$RUNNER_OS" == "macOS" ]; then
brew install autoconf automake ninja
fi

- name: Install bootstrap compiler
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
curl -LO https://github.com/dylan-lang/opendylan/releases/download/v2023.1.0/opendylan-2023.1-x86_64-linux.tar.bz2
tar xvf opendylan-2023.1-x86_64-linux.tar.bz2
fi
if [ "$RUNNER_OS" == "macOS" ]; then
curl -LO https://github.com/dylan-lang/opendylan/releases/download/v2023.1.0/opendylan-2023.1-x86_64-darwin.tar.bz2
tar xvf opendylan-2023.1-x86_64-darwin.tar.bz2
fi
echo "`pwd`/opendylan-2023.1/bin" >> $GITHUB_PATH

- name: "Build with batteries"
run: ./build/unix/release-with-batteries.sh

- uses: actions/upload-artifact@v4
with:
name: release-tarball
# TODO: appropriate path based on architecture and release
path: release/opendylan-2023.1-x86_64-darwin.tar.bz2
compression-level: 0
retention-days: 3
overwrite: true
if-no-files-found: error
Loading