Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Aug 25, 2024
1 parent bd69a76 commit c5f23ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,11 @@ jobs:
- uses: actions/checkout@v3
- name: Build
run: ./src/scripts/build.sh
- name: Artifact
uses: actions/upload-artifact@v4
with:
name: friction-ci-linux-x86_64
path: |
distfiles/builds/*/*.rpm
distfiles/builds/*/*.xz
distfiles/builds/*/*.AppImage
5 changes: 3 additions & 2 deletions src/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,17 @@ URL=https://github.com/friction2d/friction-sdk/releases/download/${SDK}
APPIMAGE_TAR=friction-appimage-tools-${ASDK}.tar.xz
SDK_TAR=friction-vfxplatform-CY2021-sdk-${SDK}.tar.bz2

mkdir distfiles
cd distfiles
mkdir -p distfiles/sdk

cd distfiles
if [ ! -d "linux" ]; then
if [ ! -f "${APPIMAGE_TAR}" ]; then
wget ${URL}/${APPIMAGE_TAR}
fi
tar xvf ${APPIMAGE_TAR}
fi

cd sdk
if [ ! -f "${SDK_TAR}" ]; then
wget ${URL}/${SDK_TAR}
fi
Expand Down

0 comments on commit c5f23ce

Please sign in to comment.