diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 63922e8a8..033cee83e 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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 diff --git a/src/scripts/build.sh b/src/scripts/build.sh index a90ef4c74..79dc9e292 100755 --- a/src/scripts/build.sh +++ b/src/scripts/build.sh @@ -31,9 +31,9 @@ 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} @@ -41,6 +41,7 @@ if [ ! -d "linux" ]; then tar xvf ${APPIMAGE_TAR} fi +cd sdk if [ ! -f "${SDK_TAR}" ]; then wget ${URL}/${SDK_TAR} fi