mirror of https://github.com/PCSX2/pcsx2.git
actions-linux: Update linux workflow to upload artifacts to release
This commit is contained in:
parent
9d2976cef6
commit
c0f83524a9
|
@ -6,59 +6,36 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
paths-ignore:
|
tags:
|
||||||
- '**/*.md'
|
- v*
|
||||||
- '**/*.bat'
|
|
||||||
- '**/*.cmd'
|
|
||||||
- '**/*.props'
|
|
||||||
- '**/*.sln'
|
|
||||||
- '.clang-format'
|
|
||||||
- '.codacy.yaml'
|
|
||||||
- '.github/*'
|
|
||||||
- '.github/workflows/lint-gamedb.yml'
|
|
||||||
- '.github/workflows/macos-workflow.yml'
|
|
||||||
- '.github/workflows/pr-triage.yml'
|
|
||||||
- '.github/workflows/scripts/windows/**'
|
|
||||||
- '.github/workflows/scripts/validation/**'
|
|
||||||
- '.github/workflows/windows-workflow.yml'
|
|
||||||
- '.gitignore'
|
|
||||||
- 'bin/PCSX2_keys.ini.default'
|
|
||||||
- 'build.sh'
|
|
||||||
- 'buildbot.xml'
|
|
||||||
- 'pcsx2/CDVD/Windows/**'
|
|
||||||
- 'pcsx2/DEV9/Win32/**'
|
|
||||||
- 'pcsx2/PAD/Windows/**'
|
|
||||||
- 'pcsx2/SPU2/Windows/**'
|
|
||||||
- 'pcsx2/USB/Win32/**'
|
|
||||||
- 'pcsx2/windows/**'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**/*.md'
|
- "**/*.md"
|
||||||
- '**/*.bat'
|
- "**/*.bat"
|
||||||
- '**/*.cmd'
|
- "**/*.cmd"
|
||||||
- '**/*.props'
|
- "**/*.props"
|
||||||
- '**/*.sln'
|
- "**/*.sln"
|
||||||
- '.clang-format'
|
- ".clang-format"
|
||||||
- '.codacy.yaml'
|
- ".codacy.yaml"
|
||||||
- '.github/*'
|
- ".github/*"
|
||||||
- '.github/workflows/lint-gamedb.yml'
|
- ".github/workflows/lint-gamedb.yml"
|
||||||
- '.github/workflows/macos-workflow.yml'
|
- ".github/workflows/macos-workflow.yml"
|
||||||
- '.github/workflows/pr-triage.yml'
|
- ".github/workflows/pr-triage.yml"
|
||||||
- '.github/workflows/scripts/windows/**'
|
- ".github/workflows/scripts/windows/**"
|
||||||
- '.github/workflows/scripts/validation/**'
|
- ".github/workflows/scripts/validation/**"
|
||||||
- '.github/workflows/windows-workflow.yml'
|
- ".github/workflows/windows-workflow.yml"
|
||||||
- '.gitignore'
|
- ".gitignore"
|
||||||
- 'bin/PCSX2_keys.ini.default'
|
- "bin/PCSX2_keys.ini.default"
|
||||||
- 'build.sh'
|
- "build.sh"
|
||||||
- 'buildbot.xml'
|
- "buildbot.xml"
|
||||||
- 'pcsx2/CDVD/Windows/**'
|
- "pcsx2/CDVD/Windows/**"
|
||||||
- 'pcsx2/DEV9/Win32/**'
|
- "pcsx2/DEV9/Win32/**"
|
||||||
- 'pcsx2/PAD/Windows/**'
|
- "pcsx2/PAD/Windows/**"
|
||||||
- 'pcsx2/SPU2/Windows/**'
|
- "pcsx2/SPU2/Windows/**"
|
||||||
- 'pcsx2/USB/Win32/**'
|
- "pcsx2/USB/Win32/**"
|
||||||
- 'pcsx2/windows/**'
|
- "pcsx2/windows/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -86,18 +63,21 @@ jobs:
|
||||||
# (PCH conflicts with ccache, fixed by https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4400)
|
# (PCH conflicts with ccache, fixed by https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4400)
|
||||||
cmakeflags: -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON
|
cmakeflags: -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON
|
||||||
detail: " nopch"
|
detail: " nopch"
|
||||||
|
appimage: false
|
||||||
experimental: false
|
experimental: false
|
||||||
- os: ubuntu-18.04
|
- os: ubuntu-18.04
|
||||||
platform: x86
|
platform: x86
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
cmakeflags: -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON
|
cmakeflags: -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON
|
||||||
detail: " nopch"
|
detail: " nopch"
|
||||||
|
appimage: false
|
||||||
experimental: false
|
experimental: false
|
||||||
- os: ubuntu-18.04
|
- os: ubuntu-18.04
|
||||||
platform: x86
|
platform: x86
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
cmakeflags: -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON -DARCH_FLAG=-march=haswell
|
cmakeflags: -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON -DARCH_FLAG=-march=haswell
|
||||||
detail: " avx2 nopch"
|
detail: " avx2 nopch"
|
||||||
|
appimage: false
|
||||||
experimental: false
|
experimental: false
|
||||||
|
|
||||||
name: ${{ matrix.platform }} | ${{ matrix.compiler }}${{ matrix.detail }}
|
name: ${{ matrix.platform }} | ${{ matrix.compiler }}${{ matrix.detail }}
|
||||||
|
@ -169,7 +149,8 @@ jobs:
|
||||||
TRIMMED_ARTIFACT_NAME=$(printf "%.199s]" "$ARTIFACT_NAME")
|
TRIMMED_ARTIFACT_NAME=$(printf "%.199s]" "$ARTIFACT_NAME")
|
||||||
echo "name=$TRIMMED_ARTIFACT_NAME"
|
echo "name=$TRIMMED_ARTIFACT_NAME"
|
||||||
echo "##[set-output name=name;]${TRIMMED_ARTIFACT_NAME}"
|
echo "##[set-output name=name;]${TRIMMED_ARTIFACT_NAME}"
|
||||||
|
echo "##[set-output name=arch;]${ARCH}"
|
||||||
|
|
||||||
- name: Install Packages
|
- name: Install Packages
|
||||||
env:
|
env:
|
||||||
PLATFORM: ${{ matrix.platform }}
|
PLATFORM: ${{ matrix.platform }}
|
||||||
|
@ -190,18 +171,37 @@ jobs:
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
working-directory: ./build
|
working-directory: ./build
|
||||||
run: ninja unittests
|
run: ninja unittests
|
||||||
|
|
||||||
- name: Package AppImage
|
- name: Package AppImage
|
||||||
|
if: matrix.appimage == true
|
||||||
env:
|
env:
|
||||||
PLATFORM: ${{ matrix.platform }}
|
PLATFORM: ${{ matrix.platform }}
|
||||||
COMPILER: ${{ matrix.compiler }}
|
COMPILER: ${{ matrix.compiler }}
|
||||||
name: ${{ steps.artifact-metadata.outputs.name }}
|
name: ${{ steps.artifact-metadata.outputs.name }}
|
||||||
run: .github/workflows/scripts/linux/appimage.sh
|
run: .github/workflows/scripts/linux/appimage.sh
|
||||||
if: ${{ matrix.appimage }}
|
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
|
if: matrix.appimage == true
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.artifact-metadata.outputs.name }}
|
name: ${{ steps.artifact-metadata.outputs.name }}
|
||||||
path: artifacts
|
path: ci-artifacts
|
||||||
if: ${{ matrix.appimage }}
|
|
||||||
|
# ---- Release / Tagging related steps ----
|
||||||
|
- name: Prepare Build Artifacts
|
||||||
|
if: startsWith(github.ref, 'refs/tags/') && matrix.appimage == true
|
||||||
|
run: |
|
||||||
|
mv ./ci-artifacts/*.AppImage ./ci-artifacts/linux-AppImage-${{ steps.artifact-metadata.outputs.arch }}.AppImage
|
||||||
|
ls ./ci-artifacts/
|
||||||
|
|
||||||
|
- name: Upload Assets and Potential Publish Release
|
||||||
|
if: startsWith(github.ref, 'refs/tags/') && matrix.appimage == true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.BOT_PAT }}
|
||||||
|
ASSET_DIR: ${{ github.WORKSPACE }}/ci-artifacts
|
||||||
|
ASSET_EXTENSION: "AppImage"
|
||||||
|
TAG_TO_SEARCH_FOR: ${{ github.REF }}
|
||||||
|
run: |
|
||||||
|
cd ./.github/workflows/scripts/releases/upload-release-artifacts
|
||||||
|
npm ci
|
||||||
|
node index.js
|
||||||
|
|
Loading…
Reference in New Issue