Browse Source
[ci] delete old workflows (#2843)
[ci] delete old workflows (#2843)
unneeded, and highly outdated Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2843pull/2829/head
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
2 changed files with 0 additions and 355 deletions
@ -1,152 +0,0 @@ |
|||||
# TODO: This document needs to be formatted, |
|
||||
# some stuff needs cleaned up etc |
|
||||
name: eden-build |
|
||||
|
|
||||
#on: |
|
||||
# push: |
|
||||
# branches: [ "master" ] |
|
||||
|
|
||||
# TODO: combine build.yml into trigger_release.yml |
|
||||
jobs: |
|
||||
source: |
|
||||
if: ${{ !github.head_ref }} |
|
||||
runs-on: source |
|
||||
steps: |
|
||||
- uses: actions/checkout@v4 |
|
||||
with: |
|
||||
submodules: recursive |
|
||||
|
|
||||
- name: Pack |
|
||||
run: ./.ci/source.sh |
|
||||
|
|
||||
- name: Upload |
|
||||
uses: forgejo/upload-artifact@v4 |
|
||||
with: |
|
||||
retention-days: 2 |
|
||||
name: source.zip |
|
||||
path: artifacts/ |
|
||||
|
|
||||
windows: |
|
||||
runs-on: windows |
|
||||
strategy: |
|
||||
matrix: |
|
||||
target: ["msvc"] # TODO: Add msys2 |
|
||||
defaults: |
|
||||
run: |
|
||||
shell: ${{ (matrix.target == 'msys2' && 'msys2') || 'bash' }} {0} |
|
||||
env: |
|
||||
CCACHE_DIR: ${{ runner.workspace }}/.cache/.ccache |
|
||||
CCACHE_COMPILERCHECK: content |
|
||||
CCACHE_SLOPPINESS: time_macros |
|
||||
OS: windows |
|
||||
TARGET: ${{ matrix.target }} |
|
||||
steps: |
|
||||
- uses: actions/checkout@v4 |
|
||||
with: |
|
||||
submodules: recursive |
|
||||
fetch-depth: 0 |
|
||||
fetch-tags: true |
|
||||
|
|
||||
- name: Set up vcpkg cache |
|
||||
uses: actions/cache@v4 |
|
||||
with: |
|
||||
path: | |
|
||||
${{ github.workspace }}/build/vcpkg_installed |
|
||||
${{ github.workspace }}/build/externals |
|
||||
${{ github.workspace }}/.vcpkg |
|
||||
key: ${{ runner.os }}-${{ matrix.target }}-vcpkg-${{ hashFiles('**/CMakeLists.txt', '**/vcpkg.json') }}-${{ github.run_id }} |
|
||||
restore-keys: | |
|
||||
${{ runner.os }}-${{ matrix.target }}-vcpkg- |
|
||||
|
|
||||
- name: Set up MSVC |
|
||||
uses: https://github.com/ilammy/msvc-dev-cmd@v1 |
|
||||
if: ${{ matrix.target == 'msvc' }} |
|
||||
|
|
||||
- name: Cygwin with autoconf # NEEDED FOR LIBUSB |
|
||||
shell: cmd |
|
||||
run: ./.ci/windows/cygwin.bat |
|
||||
|
|
||||
- name: Configure & Build |
|
||||
shell: bash |
|
||||
run: | |
|
||||
./.ci/windows/qt-envvars.sh |
|
||||
DEVEL=true WINDEPLOYQT="/c/Qt/6.9.0/msvc2022_64/bin/windeployqt6.exe" .ci/windows/build.sh -DCMAKE_PREFIX_PATH=C:/Qt/6.9.0/msvc2022_64/lib/cmake/Qt6 |
|
||||
|
|
||||
- name: Package artifacts |
|
||||
shell: bash |
|
||||
run: | |
|
||||
./.ci/windows/qt-envvars.sh |
|
||||
./.ci/windows/package.sh |
|
||||
|
|
||||
- name: Upload Windows artifacts |
|
||||
uses: forgejo/upload-artifact@v4 |
|
||||
with: |
|
||||
retention-days: 2 |
|
||||
name: ${{ matrix.target }}.zip |
|
||||
path: artifacts/* |
|
||||
|
|
||||
linux: |
|
||||
runs-on: linux |
|
||||
env: |
|
||||
CCACHE_DIR: /home/runner/.cache/ccache |
|
||||
CCACHE_COMPILERCHECK: content |
|
||||
CCACHE_SLOPPINESS: time_macros |
|
||||
OS: linux |
|
||||
TARGET: fresh |
|
||||
steps: |
|
||||
- uses: actions/checkout@v4 |
|
||||
with: |
|
||||
submodules: recursive |
|
||||
fetch-depth: 0 |
|
||||
fetch-tags: true |
|
||||
|
|
||||
- name: Build |
|
||||
run: TARGET=appimage DEVEL=true ./.ci/linux/build.sh |
|
||||
|
|
||||
- name: Package AppImage |
|
||||
run: DEVEL=true ./.ci/linux/package.sh &> /dev/null |
|
||||
|
|
||||
- name: Upload Linux artifacts |
|
||||
uses: forgejo/upload-artifact@v4 |
|
||||
with: |
|
||||
retention-days: 3 |
|
||||
name: linux.zip |
|
||||
path: ./*.AppImage |
|
||||
|
|
||||
android: |
|
||||
runs-on: android |
|
||||
|
|
||||
env: |
|
||||
OS: android |
|
||||
TARGET: universal |
|
||||
|
|
||||
steps: |
|
||||
- uses: actions/checkout@v4 |
|
||||
with: |
|
||||
submodules: recursive |
|
||||
fetch-depth: 0 |
|
||||
fetch-tags: true |
|
||||
|
|
||||
- name: Set tag name |
|
||||
run: | |
|
||||
if [[ "$GITHUB_REF_TYPE" == "tag" ]]; then |
|
||||
echo "GIT_TAG_NAME=$GITHUB_REF_NAME" >> $GITHUB_ENV |
|
||||
fi |
|
||||
echo $GIT_TAG_NAME |
|
||||
|
|
||||
- name: Build |
|
||||
run: ANDROID_HOME=/home/runner/sdk ./.ci/android/build.sh |
|
||||
env: |
|
||||
ANDROID_KEYSTORE_B64: ${{ secrets.ANDROID_KEYSTORE_B64 }} |
|
||||
ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }} |
|
||||
ANDROID_KEYSTORE_PASS: ${{ secrets.ANDROID_KEYSTORE_PASS }} |
|
||||
|
|
||||
- name: Package Android artifacts |
|
||||
run: ./.ci/android/package.sh |
|
||||
|
|
||||
- name: Upload Android artifacts |
|
||||
uses: forgejo/upload-artifact@v4 |
|
||||
with: |
|
||||
retention-days: 2 |
|
||||
name: android.zip |
|
||||
path: artifacts/* |
|
||||
@ -1,203 +0,0 @@ |
|||||
name: Build Application and Make Release |
|
||||
|
|
||||
#on: |
|
||||
# push: |
|
||||
# tags: [ "*" ] |
|
||||
|
|
||||
permissions: |
|
||||
contents: write |
|
||||
|
|
||||
jobs: |
|
||||
source: |
|
||||
runs-on: source |
|
||||
steps: |
|
||||
- uses: actions/checkout@v4 |
|
||||
with: |
|
||||
submodules: recursive |
|
||||
- name: Pack |
|
||||
run: ./.ci/source.sh |
|
||||
- name: Upload |
|
||||
uses: forgejo/upload-artifact@v4 |
|
||||
with: |
|
||||
retention-days: 2 |
|
||||
name: source.zip |
|
||||
path: artifacts/ |
|
||||
|
|
||||
windows: |
|
||||
runs-on: windows |
|
||||
strategy: |
|
||||
matrix: |
|
||||
target: ["msvc"] # TODO: Add msys2 |
|
||||
defaults: |
|
||||
run: |
|
||||
shell: ${{ (matrix.target == 'msys2' && 'msys2') || 'bash' }} {0} |
|
||||
env: |
|
||||
CCACHE_DIR: ${{ runner.workspace }}/.cache/.ccache |
|
||||
CCACHE_COMPILERCHECK: content |
|
||||
CCACHE_SLOPPINESS: time_macros |
|
||||
OS: windows |
|
||||
TARGET: ${{ matrix.target }} |
|
||||
steps: |
|
||||
- uses: actions/checkout@v4 |
|
||||
with: |
|
||||
submodules: recursive |
|
||||
fetch-depth: 0 |
|
||||
fetch-tags: true |
|
||||
|
|
||||
- name: Set up vcpkg cache |
|
||||
uses: actions/cache@v4 |
|
||||
with: |
|
||||
path: | |
|
||||
${{ github.workspace }}/build/vcpkg_installed |
|
||||
${{ github.workspace }}/build/externals |
|
||||
${{ github.workspace }}/.vcpkg |
|
||||
key: ${{ runner.os }}-${{ matrix.target }}-vcpkg-${{ hashFiles('**/CMakeLists.txt', '**/vcpkg.json') }}-${{ github.run_id }} |
|
||||
restore-keys: | |
|
||||
${{ runner.os }}-${{ matrix.target }}-vcpkg- |
|
||||
|
|
||||
- name: Set up MSVC |
|
||||
uses: https://github.com/ilammy/msvc-dev-cmd@v1 |
|
||||
if: ${{ matrix.target == 'msvc' }} |
|
||||
|
|
||||
- name: Cygwin with autoconf # NEEDED FOR LIBUSB |
|
||||
shell: cmd |
|
||||
run: ./.ci/windows/cygwin.bat |
|
||||
|
|
||||
- name: Configure & Build |
|
||||
shell: bash |
|
||||
run: DEVEL=false ./.ci/windows/build.sh |
|
||||
|
|
||||
- name: Package artifacts |
|
||||
shell: bash |
|
||||
run: | |
|
||||
export PATH="${PATH}:/c/Qt/6.9.0/msvc2022_64/bin" |
|
||||
./.ci/windows/package.sh |
|
||||
|
|
||||
- name: Upload Windows artifacts |
|
||||
uses: forgejo/upload-artifact@v4 |
|
||||
with: |
|
||||
retention-days: 2 |
|
||||
name: ${{ matrix.target }}.zip |
|
||||
path: artifacts/* |
|
||||
|
|
||||
linux: |
|
||||
runs-on: linux |
|
||||
env: |
|
||||
CCACHE_DIR: /home/runner/.cache/ccache |
|
||||
CCACHE_COMPILERCHECK: content |
|
||||
CCACHE_SLOPPINESS: time_macros |
|
||||
OS: linux |
|
||||
TARGET: fresh |
|
||||
steps: |
|
||||
- uses: actions/checkout@v4 |
|
||||
with: |
|
||||
submodules: recursive |
|
||||
fetch-depth: 0 |
|
||||
fetch-tags: true |
|
||||
|
|
||||
- name: Build |
|
||||
run: TARGET=appimage RELEASE=1 DEVEL=false ./.ci/linux/build.sh v3 8 |
|
||||
|
|
||||
- name: Package AppImage |
|
||||
run: ./.ci/linux/package.sh v3 &> /dev/null |
|
||||
|
|
||||
- name: Upload Linux artifacts |
|
||||
uses: forgejo/upload-artifact@v4 |
|
||||
with: |
|
||||
retention-days: 2 |
|
||||
name: linux.zip |
|
||||
path: ./*.AppImage* |
|
||||
|
|
||||
android: |
|
||||
runs-on: android |
|
||||
|
|
||||
env: |
|
||||
CCACHE_DIR: /home/runner/.cache/ccache |
|
||||
CCACHE_COMPILERCHECK: content |
|
||||
CCACHE_SLOPPINESS: time_macros |
|
||||
OS: android |
|
||||
TARGET: universal |
|
||||
|
|
||||
steps: |
|
||||
- uses: actions/checkout@v4 |
|
||||
with: |
|
||||
submodules: recursive |
|
||||
fetch-depth: 0 |
|
||||
fetch-tags: true |
|
||||
|
|
||||
- name: Set tag name |
|
||||
run: | |
|
||||
if [[ "$GITHUB_REF_TYPE" == "tag" ]]; then |
|
||||
echo "GIT_TAG_NAME=$GITHUB_REF_NAME" >> $GITHUB_ENV |
|
||||
fi |
|
||||
echo $GIT_TAG_NAME |
|
||||
|
|
||||
- name: Build |
|
||||
run: DEVEL=false ANDROID_HOME=/home/runner/sdk ./.ci/android/build.sh |
|
||||
env: |
|
||||
ANDROID_KEYSTORE_B64: ${{ secrets.ANDROID_KEYSTORE_B64 }} |
|
||||
ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }} |
|
||||
ANDROID_KEYSTORE_PASS: ${{ secrets.ANDROID_KEYSTORE_PASS }} |
|
||||
|
|
||||
- name: Package Android artifacts |
|
||||
run: ./.ci/android/package.sh |
|
||||
|
|
||||
- name: Upload Android artifacts |
|
||||
uses: forgejo/upload-artifact@v4 |
|
||||
with: |
|
||||
retention-days: 2 |
|
||||
name: android.zip |
|
||||
path: artifacts/* |
|
||||
|
|
||||
create_release: |
|
||||
needs: [linux, windows, android] |
|
||||
runs-on: linux |
|
||||
outputs: |
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} |
|
||||
|
|
||||
steps: |
|
||||
- name: Checkout |
|
||||
uses: actions/checkout@v4 |
|
||||
with: |
|
||||
fetch-depth: 0 |
|
||||
submodules: 'recursive' |
|
||||
path: 'eden-source' |
|
||||
|
|
||||
- name: Download artifacts |
|
||||
uses: forgejo/download-artifact@v4 |
|
||||
with: |
|
||||
path: artifacts |
|
||||
|
|
||||
- name: Grab and store version |
|
||||
run: | |
|
||||
cd eden-source |
|
||||
tag_name=$(git describe --tags --abbrev=0) |
|
||||
echo "VERSION=$tag_name" >> $GITHUB_ENV |
|
||||
echo $tag_name |
|
||||
|
|
||||
- name: Package artifacts properly |
|
||||
shell: bash |
|
||||
run: | |
|
||||
set -ex |
|
||||
mv ${{ github.workspace }}/eden-source eden-${{ env.VERSION }} |
|
||||
cd artifacts |
|
||||
ls *.zip |
|
||||
|
|
||||
mkdir -p dist |
|
||||
|
|
||||
cp linux.zip/Eden-*.AppImage dist/Eden-Linux-${{ env.VERSION }}-amd64.AppImage |
|
||||
cp linux.zip/Eden-*.AppImage.zsync dist/Eden-Linux-${{ env.VERSION }}-amd64.AppImage.zsync |
|
||||
cp msvc.zip/eden-windows-msvc*.zip dist/Eden-Windows-MSVC-${{ env.VERSION }}-amd64.zip |
|
||||
cp android.zip/eden-android*.apk dist/Eden-Android-${{ env.VERSION }}.apk |
|
||||
cp android.zip/eden-android*.aab dist/Eden-Android-${{ env.VERSION }}.aab |
|
||||
cp source.zip/eden-unified-source*.tar.xz dist/Eden-Source-${{ env.VERSION }}.tar.xz |
|
||||
cp source.zip/eden-unified-source*.tar.xz.sha256sum dist/Eden-Source-${{ env.VERSION }}.tar.xz.sha256sum |
|
||||
|
|
||||
- name: Create release |
|
||||
id: create_release |
|
||||
uses: actions/forgejo-release@v2.6.0 |
|
||||
with: |
|
||||
direction: upload |
|
||||
tag: ${{ env.VERSION }} |
|
||||
title: Eden ${{ env.VERSION }} |
|
||||
release-dir: artifacts/dist/ |
|
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue