[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 illusion98
parent 6923e5e898
commit 9ba48c8176
3 changed files with 22 additions and 20 deletions

View File

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

View File

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

View File

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