Skip to content

Commit

Permalink
Merge remote-tracking branch 'omasanori/build-releases'
Browse files Browse the repository at this point in the history
  • Loading branch information
mawww committed Jun 3, 2022
2 parents 72e181e + 1d439f0 commit 66ab823
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-releases-linux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build static binaries for Linux

on:
release:
types: [published, edited]

jobs:
build:
runs-on: ubuntu-latest
container:
image: alpine:latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.tag_name }}
- name: Prepare
run: apk add --no-cache binutils bzip2 g++ git make tar
- name: Build
run: |
mkdir -p kakoune-${{ github.event.release.tag_name }}-linux/
make -C src all static=yes
make -C src install PREFIX=$(pwd)/kakoune-${{ github.event.release.tag_name }}-linux/
strip -s kakoune-${{ github.event.release.tag_name }}-linux/bin/kak
tar cvjf kakoune-${{ github.event.release.tag_name }}-linux.tar.bz2 kakoune-${{ github.event.release.tag_name }}-linux/
- name: Upload
uses: softprops/action-gh-release@v1
with:
files: kakoune-${{ github.event.release.tag_name }}-linux.tar.bz2

0 comments on commit 66ab823

Please sign in to comment.