Skip to content

Commit

Permalink
Set up release archives
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Jan 15, 2022
1 parent b60317c commit b88775c
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 277 deletions.
126 changes: 118 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
name: build

on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
on: [push]

env:
DEBIAN_FRONTEND: noninteractive
HOMEBREW_NO_AUTO_UPDATE: 1
Expand Down Expand Up @@ -49,6 +44,24 @@ jobs:
name: ${{ github.event.repository.name }}-linux-arm64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
path: |
bin/*
- name: Create release archive
if: startsWith(github.ref, 'refs/tags/')
run: |
cp utils/README-Linux.txt bin/README.txt
tar -c -z bin/* \
--transform="s,^bin/,${{ github.event.repository.name }}-${{ github.ref_name }}," \
-f ~/build.tar.gz \
.
mv ~/build.tar.gz ${{ github.event.repository.name }}-${{ github.ref_name }}-linux-arm64.tar.gz
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: false
prerelease: false
files: |
${{ github.event.repository.name }}-${{ github.ref_name }}-linux-arm64.tar.gz
linux-armhf:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -87,6 +100,24 @@ jobs:
name: ${{ github.event.repository.name }}-linux-armhf-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
path: |
bin/*
- name: Create release archive
if: startsWith(github.ref, 'refs/tags/')
run: |
cp utils/README-Linux.txt bin/README.txt
tar -c -z bin/* \
--transform="s,^bin/,${{ github.event.repository.name }}-${{ github.ref_name }}," \
-f ~/build.tar.gz \
.
mv ~/build.tar.gz ${{ github.event.repository.name }}-${{ github.ref_name }}-linux-armhf.tar.gz
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: false
prerelease: false
files: |
${{ github.event.repository.name }}-${{ github.ref_name }}-linux-armhf.tar.gz
linux-i686:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -123,6 +154,24 @@ jobs:
name: ${{ github.event.repository.name }}-linux-i686-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
path: |
bin/*
- name: Create release archive
if: startsWith(github.ref, 'refs/tags/')
run: |
cp utils/README-Linux.txt bin/README.txt
tar -c -z bin/* \
--transform="s,^bin/,${{ github.event.repository.name }}-${{ github.ref_name }}," \
-f ~/build.tar.gz \
.
mv ~/build.tar.gz ${{ github.event.repository.name }}-${{ github.ref_name }}-linux-i686.tar.gz
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: false
prerelease: false
files: |
${{ github.event.repository.name }}-${{ github.ref_name }}-linux-i686.tar.gz
linux-x86_64:
runs-on: ubuntu-20.04
Expand All @@ -148,6 +197,24 @@ jobs:
name: ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
path: |
bin/*
- name: Create release archive
if: startsWith(github.ref, 'refs/tags/')
run: |
cp utils/README-Linux.txt bin/README.txt
tar -c -z bin/* \
--transform="s,^bin/,${{ github.event.repository.name }}-${{ github.ref_name }}," \
-f ~/build.tar.gz \
.
mv ~/build.tar.gz ${{ github.event.repository.name }}-${{ github.ref_name }}-linux-x86_64.tar.gz
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: false
prerelease: false
files: |
${{ github.event.repository.name }}-${{ github.ref_name }}-linux-x86_64.tar.gz
macos-universal:
runs-on: macos-10.15
Expand Down Expand Up @@ -182,6 +249,19 @@ jobs:
!bin/lv2
!bin/vst2
!bin/vst3
- name: Create release archive
if: startsWith(github.ref, 'refs/tags/')
run: |
mv *-macOS.pkg ${{ github.event.repository.name }}-${{ github.ref_name }}-macOS.pkg
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: false
prerelease: false
files: |
${{ github.event.repository.name }}-${{ github.ref_name }}-macOS.pkg
win32:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -218,7 +298,22 @@ jobs:
path: |
bin/*
!bin/*-ladspa.dll
!bin/*-dssi.dll
!bin/*-dssi*
- name: Create release archive
if: startsWith(github.ref, 'refs/tags/')
run: |
mv bin ${{ github.event.repository.name }}-${{ github.ref_name }}
zip -r -9 build.zip ${{ github.event.repository.name }}-${{ github.ref_name }}/* -x ${{ github.event.repository.name }}-${{ github.ref_name }}/*-ladspa.dll -x ${{ github.event.repository.name }}-${{ github.ref_name }}/*-dssi.dll
mv build.zip ${{ github.event.repository.name }}-${{ github.ref_name }}-win32.zip
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: false
prerelease: false
files: |
${{ github.event.repository.name }}-${{ github.ref_name }}-win32.zip
win64:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -250,6 +345,21 @@ jobs:
bin/*
!bin/*-ladspa.dll
!bin/*-dssi.dll
- name: Create release archive
if: startsWith(github.ref, 'refs/tags/')
run: |
mv bin ${{ github.event.repository.name }}-${{ github.ref_name }}
zip -r -9 build.zip ${{ github.event.repository.name }}-${{ github.ref_name }}/* -x ${{ github.event.repository.name }}-${{ github.ref_name }}/*-ladspa.dll -x ${{ github.event.repository.name }}-${{ github.ref_name }}/*-dssi.dll
mv build.zip ${{ github.event.repository.name }}-${{ github.ref_name }}-win64.zip
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: false
prerelease: false
files: |
${{ github.event.repository.name }}-${{ github.ref_name }}-win64.zip
plugin-validation:
runs-on: ubuntu-20.04
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/irc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: irc

on: [push]
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'

jobs:
notification:
Expand Down
56 changes: 0 additions & 56 deletions utils/pack-linux.sh

This file was deleted.

59 changes: 0 additions & 59 deletions utils/pack-macos-10.06.sh

This file was deleted.

47 changes: 0 additions & 47 deletions utils/pack-macos-10.08.sh

This file was deleted.

Loading

0 comments on commit b88775c

Please sign in to comment.