maintenance: OBS linguist requirements #37
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Slumber build | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
#pull_request: | |
# branches: | |
# - master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'true' | |
- name: Prepare | |
run: mkdir output | |
- name: Build armv7hl | |
id: build_armv7hl | |
uses: coderus/github-sfos-build@master | |
with: | |
release: 4.5.0.16 | |
- name: Build i486 | |
id: build_i486 | |
uses: coderus/github-sfos-build@master | |
with: | |
release: 4.5.0.16 | |
arch: i486 | |
# aarch64 complains about ssl/crypto | |
# with older targets, so we use a | |
# newer release | |
- name: Build aarch64 | |
id: build_aarch64 | |
uses: coderus/github-sfos-build@master | |
with: | |
release: 4.5.0.16 | |
arch: aarch64 | |
- name: Upload build result | |
uses: actions/upload-artifact@v2 | |
with: | |
name: rpm-build-result | |
path: RPMS | |
- name: Create release | |
if: contains(github.ref, 'v') | |
run: | | |
set -x | |
assets=() | |
for asset in RPMS/*.rpm; do | |
assets+=("$asset") | |
done | |
tag_name="${GITHUB_REF##*/}" | |
gh release create "$tag_name" "${assets[@]}" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create prerelease | |
if: contains(github.ref, 'pre') | |
run: | | |
set -x | |
assets=() | |
for asset in RPMS/*.rpm; do | |
assets+=("$asset") | |
done | |
tag_name="${GITHUB_REF##*/}" | |
gh release create "$tag_name" -p -n "This is a pre-release for testing purposes only. It may or may not be unstable." "${assets[@]}" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |