Skip to content

Commit

Permalink
Merge pull request #3 from yanorei32/add-tagged-release
Browse files Browse the repository at this point in the history
Add CI script of tagged release
  • Loading branch information
tyan0 authored Nov 29, 2021
2 parents 399f410 + 209775e commit 7d4f677
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "tagged-release"

on:
push:
tags:
- "v*"

jobs:
build:
name: "build"
runs-on: "windows-2022"

steps:
- name: Set up Cygwin
uses: egor-tensin/setup-cygwin@v3
with:
platform: x64
packages: git patch automake pkg-config libtool make mingw64-i686-gcc-g++ tar

- name: Checkout
uses: actions/checkout@v2

- name: Build
run: |
cd /cygdrive/d/a/aacdmsplit/aacdmsplit
git clone https://github.com/knik0/faad2 --depth 1 --branch 2_8_8 faad2-2.8.8
patch -p1 -d faad2-2.8.8 < ./faad2.patch
cd faad2-2.8.8
autoreconf -i
AR=i686-w64-mingw32-ar CC=i686-w64-mingw32-gcc ./configure
make -j
cd ..
make archive
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'

- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
aacdmsplit.tar.gz

0 comments on commit 7d4f677

Please sign in to comment.