This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
forked from cashapp/hermit-build
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (45 loc) · 1.6 KB
/
pkg.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Build package
on:
workflow_dispatch:
inputs:
package:
description: "Package to build"
required: true
type: string
version:
description: "Version to build"
required: true
type: string
jobs:
pkg:
name: Build
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
strategy:
matrix:
include:
- os: ubuntu-18.04
# To ensure binaries built are compatible with Block's Kochiku worker environment
container: centos:centos7
- os: macos-12
steps:
- name: Install required dependencies on CentOS
if: startsWith(matrix.container, 'centos')
# Endpoint repo is required to get recent version of git so checkout action will checkout code
# as a local git repo instead of falling back to downloading the repo's files using the GitHub REST API
run: |
yum install --assumeyes https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
yum install --assumeyes git gcc
- name: Checkout code
uses: actions/checkout@v3
- name: Init Hermit
run: ./bin/hermit env --raw >> $GITHUB_ENV
- name: Build
run: make VERSION=${{ inputs.version }} -C pkgs/${{ inputs.package }}
- name: Upload Release
uses: ncipollo/release-action@v1
with:
tag: ${{ inputs.package }}-${{ inputs.version }}
allowUpdates: true
artifacts: "pkgs/${{ inputs.package }}/${{ inputs.package }}-${{ inputs.version }}-*.tar.xz"
token: ${{ secrets.GITHUB_TOKEN }}