Skip to content

Commit

Permalink
Merge pull request #31 from maxkratz/feature/release-ci
Browse files Browse the repository at this point in the history
Introduces CI mechanism to create releases on Github
  • Loading branch information
maxkratz authored Feb 22, 2022
2 parents 112e6f4 + 6f6d44f commit 303b839
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main
- 'testing/**'
# Run pipeline for release tags
tags:
- 'v*.*.*'

jobs:
# Build Eclipse eMoflon Linux user
Expand Down Expand Up @@ -114,3 +117,31 @@ jobs:
with:
name: eclipse-emoflon-windows-dev
path: eclipse-emoflon-windows-dev.zip

# Create a release if running on tag
create-release:
needs: [build-linux-user, build-linux-dev, build-linux-user-ci, build-linux-dev-ci, build-windows-user, build-windows-dev]
runs-on: [self-hosted, linux, x64]
# Only run on tags
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- name: Collect artifacts
uses: actions/download-artifact@master
- name: Release eclipse-emoflon-linux
uses: softprops/action-gh-release@v1
with:
files: |
eclipse-emoflon-linux-user/eclipse-emoflon-linux-user.zip
eclipse-emoflon-linux-dev/eclipse-emoflon-linux-dev.zip
- name: Release eclipse-emoflon-linux-ci
uses: softprops/action-gh-release@v1
with:
files: |
eclipse-emoflon-linux-user-ci/eclipse-emoflon-linux-user-ci.zip
eclipse-emoflon-linux-dev-ci/eclipse-emoflon-linux-dev-ci.zip
- name: Release eclipse-emoflon-windows
uses: softprops/action-gh-release@v1
with:
files: |
eclipse-emoflon-windows-user/eclipse-emoflon-windows-user.zip
eclipse-emoflon-windows-dev/eclipse-emoflon-windows-dev.zip
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ This repository is used to automatically build an Eclipse [eMoflon](https://gith
Furthermore, all pattern matcher integrations for eMoflon (HiPE and Democles) will be installed manually via the [emoflon-dev-workspace](https://github.com/eMoflon/emoflon-ibex#how-to-develop).


## Usage/Installation

**The latest release can be found [here](https://github.com/maxkratz/emoflon-eclipse-build/releases/latest).**
Download an archive for the version you are looking for from the release page and extract it.


## Runner requirements

In order to run the "Github Actions" pipeline you must ensure that you have at least one properly configured Linux and one Windows runner added to the Github project.
Expand Down

0 comments on commit 303b839

Please sign in to comment.