[CI] Moar minor changes

Exclude subdirectories of docs and .github;
 This fixes GitHub Actions triggering Azure.
Remove unneeded cd commands.

GitHub Actions:
 Use shorter version numbers.
This commit is contained in:
Margen67 2020-02-05 04:42:44 -08:00 committed by illusion
parent 65cc74e114
commit 8a9b8c8cde
3 changed files with 22 additions and 20 deletions

View File

@ -36,10 +36,8 @@ build_script:
after_build:
- |-
cd build\bin\Windows\Release
7z a ..\..\..\..\xenia-%appveyor_repo_branch%.zip ..\..\..\..\LICENSE xenia-canary.exe
7z a ..\..\..\..\xenia-vfs-dump-%appveyor_repo_branch%.zip ..\..\..\..\LICENSE xenia-vfs-dump.exe
cd ..\..\..\..
7z a xenia-%appveyor_repo_branch%.zip LICENSE .\build\bin\Windows\Release\xenia-canary.exe
7z a xenia-vfs-dump-%appveyor_repo_branch%.zip LICENSE .\build\bin\Windows\Release\xenia-vfs-dump.exe
test: off

View File

@ -7,8 +7,10 @@ trigger:
- master
paths:
exclude:
- docs/**
- .github/**
- docs/*
- docs/*/*
- .github/*
- .github/*/*
- LICENSE
- README.md
- .appveyor.yml
@ -22,8 +24,10 @@ pr:
- master
paths:
exclude:
- docs/**
- .github/**
- docs/*
- docs/*/*
- .github/*
- .github/*/*
- LICENSE
- README.md
- .appveyor.yml
@ -52,9 +56,8 @@ jobs:
displayName: 'Build'
- script: |
cd build\bin\Windows\Release
7z a $(Build.ArtifactStagingDirectory)\xenia-$(Build.SourceBranchName).zip ..\..\..\..\LICENSE xenia-canary.exe
7z a $(Build.ArtifactStagingDirectory)\xenia-vfs-dump-$(Build.SourceBranchName).zip ..\..\..\..\LICENSE xenia-vfs-dump.exe
7z a $(Build.ArtifactStagingDirectory)\xenia-$(Build.SourceBranchName).zip LICENSE .\build\bin\Windows\Release\xenia-canary.exe
7z a $(Build.ArtifactStagingDirectory)\xenia-vfs-dump-$(Build.SourceBranchName).zip LICENSE .\build\bin\Windows\Release\xenia-vfs-dump.exe
displayName: 'Create archives'
- publish: $(Build.ArtifactStagingDirectory)

View File

@ -9,7 +9,8 @@ on:
- '.github/CONTRIBUTING.md'
- '.github/FUNDING.md'
- '.github/ISSUE_TEMPLATE.md'
- 'docs/**'
- 'docs/*'
- 'docs/*/*'
- '.appveyor.yml'
- '.azure-pipelines.yml'
- '.travis.yml'
@ -23,7 +24,8 @@ on:
- '.github/CONTRIBUTING.md'
- '.github/FUNDING.md'
- '.github/ISSUE_TEMPLATE.md'
- 'docs/**'
- 'docs/*'
- 'docs/*/*'
- '.appveyor.yml'
- '.azure-pipelines.yml'
- '.travis.yml'
@ -41,7 +43,7 @@ jobs:
run: wmic cpu get caption, deviceid, name, numberofcores, maxclockspeed, status
shell: cmd
- uses: actions/checkout@v2.0.0
- uses: actions/checkout@v2
with:
fetch-depth: 0
@ -53,13 +55,12 @@ jobs:
- name: Prepare artifacts
run: |
robocopy build\bin\Windows\Release artifacts xenia*.exe
robocopy . artifacts LICENSE
$LastExitCode = 0
cd artifacts
7z a ..\xenia-canary.zip LICENSE xenia-canary.exe
mkdir artifacts
cp build/bin/Windows/Release/xenia*.exe LICENSE artifacts
7z a xenia-canary.zip LICENSE ./artifacts/xenia-canary.exe
shell: bash
- uses: actions/upload-artifact@v1.0.0
- uses: actions/upload-artifact@v1
with:
name: xenia-canary-${{ matrix.cpu_arch }}
path: artifacts