Skip to content

Commit

Permalink
Merge pull request #1 from yetanalytics/new-repo
Browse files Browse the repository at this point in the history
New repo update
  • Loading branch information
kelvinqian00 authored Sep 24, 2024
2 parents 3485103 + 14c1262 commit 2a7c98b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 56 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: JRE CI

# This was originally the deprecated JRE release artifact workflow.
# We keep this around because it is useful for CI on the runtimer workflow.

on:
push:
branches:
- '*'
tags:
- 'v*'

jobs:
build:
uses: yetanalytics/runtimer/.github/workflows/runtimer.yml@af5aff2ec2914a9a708e6875b2be3a6485c68140
with:
java-version: '11'
java-distribution: 'temurin'
java-modules: 'java.base,java.logging,java.naming,java.xml,java.sql,java.transaction.xa,java.security.sasl,java.management'

draft_release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download ubuntu-latest Artifact
uses: actions/download-artifact@v4
with:
name: ubuntu-20.04-jre

- name: Download macOS-latest Artifact
uses: actions/download-artifact@v4
with:
name: macos-12-jre

- name: Download windows-latest Artifact
uses: actions/download-artifact@v4
with:
name: windows-2022-jre

44 changes: 0 additions & 44 deletions .github/workflows/release.yml

This file was deleted.

15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# yetanalytics/runtimer
# yetanalytics/workflow-runtimer

This repository uses GitHub Actions to create Java runtimes for use in Yet projects like [SQL LRS](https://github.com/yetanalytics/lrsql)
This repository uses GitHub Actions to create Java runtimes for use in Yet projects like [SQL LRS](https://github.com/yetanalytics/lrsql). This workflow is built off of the [runtimer](https://github.com/yetanalytics/runtimer) workflow, but conforms to our current guidelines for workflow naming and tagging.

## Reusable GitHub Action

This repo contains a [reusable workflow](https://docs.github.com/en/actions/learn-github-actions/reusing-workflows) you can call up in a GitHub Action:

``` yaml
build:
uses: yetanalytics/runtimer/.github/workflows/runtimer.yml@< sha | tag | branch >
uses: yetanalytics/workflow-runtimer/.github/workflows/runtimer.yml@< sha | tag | branch >
with:
java-version: '11'
java-distribution: 'temurin'
Expand All @@ -25,12 +25,3 @@ This will create runtimes for the following operating systems:
- Ubuntu 20.04
- Windows Server 2022
## (DEPRECATED) Release JRE Runtime Packages
Create JRE runtimes:
1. Edit the [workflow file](.github/workflows/main.yml)
2. Push a tag
3. You'll find a draft release waiting for you for the given tag, describe and publish it.
That's it!

0 comments on commit 2a7c98b

Please sign in to comment.