Skip to content

Commit

Permalink
build .tar.gz files
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Hoß <[email protected]>
  • Loading branch information
sebhoss committed Dec 4, 2023
1 parent f36969c commit cda76e9
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 258 deletions.
79 changes: 12 additions & 67 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ jobs:
build:
name: Build on ${{ matrix.os }}
needs: prepare
outputs:
mac_sha256: ${{ steps.mac-checksum.outputs.sha256 }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -89,10 +87,6 @@ jobs:
--define sign.keyPass=${{ secrets.GPG_SECRET_KEY_PASSWORD }}
--define project.build.outputTimestamp=${{ needs.prepare.outputs.build_timestamp }}
verify
- id: mac-checksum
name: Capture MacOS SHA256 Checksum
if: needs.prepare.outputs.commit_count > 0 && runner.os == 'macOS'
run: echo "sha256=$(cat ./target/ilo-${{ needs.prepare.outputs.release_version }}-mac.zip.sha256)" >> $GITHUB_OUTPUT
- id: upload-java
name: Upload JVM Artifact
if: needs.prepare.outputs.commit_count > 0 && runner.os == 'Linux'
Expand Down Expand Up @@ -152,67 +146,18 @@ jobs:
prerelease: false
generate_release_notes: true
files: |
artifacts/jvm/ilo-${{ needs.prepare.outputs.release_version }}-jvm.zip
artifacts/jvm/ilo-${{ needs.prepare.outputs.release_version }}-jvm.zip.asc
artifacts/jvm/ilo-${{ needs.prepare.outputs.release_version }}-jvm.zip.sha512
artifacts/linux/ilo-${{ needs.prepare.outputs.release_version }}-linux.zip
artifacts/linux/ilo-${{ needs.prepare.outputs.release_version }}-linux.zip.asc
artifacts/linux/ilo-${{ needs.prepare.outputs.release_version }}-linux.zip.sha512
artifacts/mac/ilo-${{ needs.prepare.outputs.release_version }}-mac.zip
artifacts/mac/ilo-${{ needs.prepare.outputs.release_version }}-mac.zip.asc
artifacts/mac/ilo-${{ needs.prepare.outputs.release_version }}-mac.zip.sha512
artifacts/windows/ilo-${{ needs.prepare.outputs.release_version }}-windows.zip
artifacts/windows/ilo-${{ needs.prepare.outputs.release_version }}-windows.zip.asc
artifacts/windows/ilo-${{ needs.prepare.outputs.release_version }}-windows.zip.sha512
packages:
name: Update Package Managers
needs: [prepare, build, release]
runs-on: ubuntu-latest
steps:
- id: checkout
name: Clone Git Repository
if: needs.prepare.outputs.commit_count > 0
uses: actions/checkout@v4
- id: update-copr-version
name: Update COPR Version
if: needs.prepare.outputs.commit_count > 0
run: sed -i -- 's/${{ needs.prepare.outputs.previous_version }}/${{ needs.prepare.outputs.release_version }}/g' build/copr/ilo.spec
- id: update-homebrew-version
name: Update Homebrew Version
if: needs.prepare.outputs.commit_count > 0
run: sed -i -- 's/${{ needs.prepare.outputs.previous_version }}/${{ needs.prepare.outputs.release_version }}/g' HomebrewFormula/ilo.rb
- id: update-homebrew-checksum
name: Update Homebrew Checksum
if: needs.prepare.outputs.commit_count > 0
run: sed -i -- 's/sha256 \".*\"/sha256 \"${{ needs.build.outputs.mac_sha256 }}\"/g' HomebrewFormula/ilo.rb
- id: cpr
name: Create Pull Request
if: needs.prepare.outputs.commit_count > 0
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.PAT }}
commit-message: Update package-manager infos for latest release
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: Update package-manager infos for latest release
body: |
- COPR: `build/copr/ilo.spec`
- Homebrew: `HomebrewFormula/ilo.rb`
assignees: sebhoss
draft: false
base: main
branch: update-package-manager
delete-branch: true
- name: Enable Pull Request Automerge
if: needs.prepare.outputs.commit_count > 0 && steps.cpr.outputs.pull-request-operation == 'created'
run: gh pr merge --auto --rebase "${{ steps.cpr.outputs.pull-request-number }}"
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
announce:
name: Release Announcement
needs: [prepare, packages]
runs-on: ubuntu-latest
steps:
artifacts/jvm/ilo-${{ needs.prepare.outputs.release_version }}-jvm.tar.gz
artifacts/jvm/ilo-${{ needs.prepare.outputs.release_version }}-jvm.tar.gz.asc
artifacts/jvm/ilo-${{ needs.prepare.outputs.release_version }}-jvm.tar.gz.sha512
artifacts/linux/ilo-${{ needs.prepare.outputs.release_version }}-linux.tar.gz
artifacts/linux/ilo-${{ needs.prepare.outputs.release_version }}-linux.tar.gz.asc
artifacts/linux/ilo-${{ needs.prepare.outputs.release_version }}-linux.tar.gz.sha512
artifacts/mac/ilo-${{ needs.prepare.outputs.release_version }}-mac.tar.gz
artifacts/mac/ilo-${{ needs.prepare.outputs.release_version }}-mac.tar.gz.asc
artifacts/mac/ilo-${{ needs.prepare.outputs.release_version }}-mac.tar.gz.sha512
artifacts/windows/ilo-${{ needs.prepare.outputs.release_version }}-windows.tar.gz
artifacts/windows/ilo-${{ needs.prepare.outputs.release_version }}-windows.tar.gz.asc
artifacts/windows/ilo-${{ needs.prepare.outputs.release_version }}-windows.tar.gz.sha512
- id: email
name: Send Mail
if: needs.prepare.outputs.commit_count > 0
Expand Down
25 changes: 0 additions & 25 deletions HomebrewFormula/ilo.rb

This file was deleted.

33 changes: 0 additions & 33 deletions build/copr/ilo.spec

This file was deleted.

58 changes: 1 addition & 57 deletions docs/content/usage/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Prebuilt binaries of `ilo` are available for each published release at:

- https://github.com/metio/ilo/releases

Almost none of the widely used package managers have `ilo` in their official repositories yet. In case you want to help package `ilo` for your preferred operating system, take a look at the [open packaging issues](https://github.com/metio/ilo/issues?q=is%3Aopen+label%3A%22package%3A+windows%22%2C%22package%3A+alpine%22%2C%22package%3A+debian%22%2C%22package%3A+ubuntu%22%2C%22package%3A+arch%22%2C%22package%3A+fedora%22%2C%22package%3A+gentoo%22%2C%22package%3A+nix%22%2C%22package%3A+osx%22%2C%22package%3A+suse%22).
Download the package for your operating system and put the `ilo` binary in your `$PATH`. Use the JVM variant in case your operating system is not directly supported.

## Huber

Expand All @@ -26,59 +26,3 @@ In case you are using [huber](https://github.com/innobead/huber), execute the fo
$ huber repo add remote-repo --url https://github.com/metio/ilo
$ huber install ilo
```

## Linux

### Manual

The [Linux](https://www.kernel.org/) distribution of `ilo` is a native executable and does not require any additional software to be installed.

{{< linuxinstall >}}

### Fedora

[Fedora](https://getfedora.org/) users can install `ilo` from a [COPR](https://copr.fedorainfracloud.org/coprs/sebhoss/ilo/) repository like this:

```console
$ sudo dnf copr enable sebhoss/ilo
$ sudo dnf install ilo
```

### Fedora Silverblue

[Fedora Silverblue](https://silverblue.fedoraproject.org/) users can install `ilo` from the same [COPR](https://copr.fedorainfracloud.org/coprs/sebhoss/ilo/) by following these steps:

```console
$ curl --location https://copr.fedorainfracloud.org/coprs/sebhoss/ilo/repo/fedora-$(rpm -E %fedora)/sebhoss-ilo-fedora-$(rpm -E %fedora).repo --output ilo.repo
$ sudo mv ilo.repo /etc/yum.repos.d/ilo.repo
$ rpm-ostree install ilo
```

## MacOS

### Manual

The [MacOS](https://www.apple.com/macos/) distribution of `ilo` is a native executable and does not require any additional software to be installed.

{{< macinstall >}}

### Homebrew

[Homebrew](https://brew.sh/) users can install `ilo` from our tap like this:

```console
$ brew tap metio/ilo https://github.com/metio/ilo
$ brew install metio/ilo/ilo
```

## Windows

The [Windows](https://www.microsoft.com/en-us/windows) distribution of `ilo` is a native executable and does not require any additional software to be installed.

{{< windowsinstall >}}

## Other

For all other platforms that support at least [Java 21](https://www.oracle.com/javadownload), run something like this:

{{< otherinstall >}}
15 changes: 0 additions & 15 deletions docs/layouts/shortcodes/linuxinstall.html

This file was deleted.

17 changes: 0 additions & 17 deletions docs/layouts/shortcodes/macinstall.html

This file was deleted.

15 changes: 0 additions & 15 deletions docs/layouts/shortcodes/otherinstall.html

This file was deleted.

18 changes: 0 additions & 18 deletions docs/layouts/shortcodes/windowsinstall.html

This file was deleted.

6 changes: 3 additions & 3 deletions huber.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
targets:
- LinuxAmd64:
artifact_templates:
- "ilo-{version}-linux.zip"
- "ilo-{version}-linux.tar.gz"
- MacOS:
artifact_templates:
- "ilo-{version}-mac.zip"
- "ilo-{version}-mac.tar.gz"
- Windows:
artifact_templates:
- "ilo-{version}-windows.zip"
- "ilo-{version}-windows.tar.gz"
detail: ~
3 changes: 1 addition & 2 deletions src/assembly/jvm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<includeBaseDirectory>true</includeBaseDirectory>

<formats>
<format>zip</format>
<format>tar.gz</format>
</formats>

<fileSets>
Expand All @@ -24,7 +24,6 @@
<directory>${project.basedir}</directory>
<outputDirectory/>
<includes>
<include>README.md</include>
<include>LICENSE</include>
</includes>
</fileSet>
Expand Down
3 changes: 1 addition & 2 deletions src/assembly/linux.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<includeBaseDirectory>true</includeBaseDirectory>

<formats>
<format>zip</format>
<format>tar.gz</format>
</formats>

<fileSets>
Expand All @@ -27,7 +27,6 @@
<directory>${project.basedir}</directory>
<outputDirectory/>
<includes>
<include>README.md</include>
<include>LICENSE</include>
</includes>
</fileSet>
Expand Down
3 changes: 1 addition & 2 deletions src/assembly/mac.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<includeBaseDirectory>true</includeBaseDirectory>

<formats>
<format>zip</format>
<format>tar.gz</format>
</formats>

<fileSets>
Expand All @@ -27,7 +27,6 @@
<directory>${project.basedir}</directory>
<outputDirectory/>
<includes>
<include>README.md</include>
<include>LICENSE</include>
</includes>
</fileSet>
Expand Down
3 changes: 1 addition & 2 deletions src/assembly/windows.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<includeBaseDirectory>true</includeBaseDirectory>

<formats>
<format>zip</format>
<format>tar.gz</format>
</formats>

<fileSets>
Expand All @@ -27,7 +27,6 @@
<directory>${project.basedir}</directory>
<outputDirectory/>
<includes>
<include>README.md</include>
<include>LICENSE</include>
</includes>
</fileSet>
Expand Down

0 comments on commit cda76e9

Please sign in to comment.