2022-02-11 14:30:01 +00:00
|
|
|
name: Generate Source Tarball
|
2021-02-28 16:05:58 +00:00
|
|
|
|
|
|
|
# Trigger whenever a release is created
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- created
|
2022-07-30 20:50:56 +00:00
|
|
|
push:
|
|
|
|
tags:
|
2022-07-31 12:26:51 +00:00
|
|
|
- "v*.*"
|
2021-02-28 16:05:58 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
2022-10-26 07:18:14 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-02-28 16:05:58 +00:00
|
|
|
with:
|
2022-02-11 14:28:14 +00:00
|
|
|
submodules: recursive
|
2021-02-28 16:05:58 +00:00
|
|
|
|
|
|
|
- name: archive
|
|
|
|
id: archive
|
|
|
|
run: |
|
2022-07-30 20:50:56 +00:00
|
|
|
VERSION=${GITHUB_REF##*/}
|
|
|
|
test -z "$VERSION" && VERSION=${{ github.event.release.tag_name }}
|
|
|
|
VERSION=$(printf "%s\n" "$VERSION" | sed 's/^v//')
|
2021-02-28 16:05:58 +00:00
|
|
|
PKGNAME="ppsspp-$VERSION"
|
|
|
|
mkdir -p /tmp/$PKGNAME
|
|
|
|
mv * /tmp/$PKGNAME
|
|
|
|
mv /tmp/$PKGNAME .
|
2022-02-11 23:32:41 +00:00
|
|
|
find $PKGNAME/ffmpeg -name '*.a' -delete || true
|
|
|
|
find $PKGNAME/ffmpeg -name '*.lib' -delete || true
|
|
|
|
find $PKGNAME/ext -name '*.dylib' -delete || true
|
|
|
|
find $PKGNAME/ext -name '*.lib' -delete || true
|
|
|
|
find $PKGNAME/ext -name '*.so.*' -delete || true
|
|
|
|
find $PKGNAME/dx9sdk -name '*.lib' -delete || true
|
|
|
|
find $PKGNAME/dx9sdk -name '*.dll' -delete || true
|
|
|
|
rm -rf $PKGNAME/ext/rapidjson/thirdparty/gtest || true
|
2022-02-11 17:13:30 +00:00
|
|
|
sed -i "s;unknown;${VERSION};" $PKGNAME/git-version.cmake || true
|
2021-02-28 16:05:58 +00:00
|
|
|
TARBALL=$PKGNAME.tar.xz
|
|
|
|
tar cJf $TARBALL $PKGNAME
|
2022-10-26 07:18:14 +00:00
|
|
|
echo "tarball=$TARBALL" >> $GITHUB_OUTPUT
|
2021-02-28 16:05:58 +00:00
|
|
|
|
|
|
|
- name: upload tarball
|
2022-07-30 20:50:56 +00:00
|
|
|
uses: softprops/action-gh-release@v1
|
2021-02-28 16:05:58 +00:00
|
|
|
with:
|
2022-07-31 04:41:19 +00:00
|
|
|
files: ${{ steps.archive.outputs.tarball }}
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|