-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from yanorei32/add-tagged-release
Add CI script of tagged release
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
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
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 | ||