-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix custom github actions - Possible fix for Windows workflows - Add new presets (Fools Edition)
- Loading branch information
1 parent
32dd1d1
commit cd98b17
Showing
7 changed files
with
108 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,47 @@ | ||
name: Package Formatter | ||
name: 'Package Formatter' | ||
description: 'Format workflow artifact to release packages' | ||
inputs: | ||
artifact_name: | ||
required: true | ||
type: string | ||
upload_url: | ||
required: true | ||
type: string | ||
commands: | ||
required: true | ||
type: string | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
artifact_name: | ||
required: true | ||
type: string | ||
upload_url: | ||
required: true | ||
type: string | ||
commands: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
format_and_upload: | ||
runs-on: ubunut-latest | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{inputs.artifact_name}} | ||
- name: Zip artifact files | ||
working-directory: ${{github.workspace}} | ||
run: | | ||
mv ./build/DoomBFA DoomBFA | ||
mv ./base/DoomBFA.sh DoomBFA.sh | ||
cp -r -u -f ./BFA_Assets/* . | ||
rm -r ./BFA_Assets | ||
rm -r ./base/renderprogs | ||
mkdir ./third-party-licenses | ||
mv ./build/vcpkg_installed/x64-linux/share/* ./third-party-licenses | ||
chmod +x DoomBFA | ||
chmod +x DoomBFA.sh | ||
rm -d -R ./build | ||
${{inputs.commands}} | ||
zip -m -r ${{inputs.artifact_name}}.zip . | ||
- name: Upload Artifact to release | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ inputs.upload_url }} | ||
asset_path: ${{github.workspace}}/${{inputs.artifact_name}}.zip | ||
asset_name: ${{inputs.artifact_name}}.zip | ||
asset_content_type: application/zip | ||
- name: Delete artifact zip file | ||
working-directory: ${{github.workspace}} | ||
run: rm ${{inputs.artifact_name}}.zip | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{inputs.artifact_name}} | ||
- name: Zip artifact files | ||
working-directory: ${{github.workspace}} | ||
run: | | ||
mv ./build/DoomBFA DoomBFA | ||
mv ./base/DoomBFA.sh DoomBFA.sh | ||
cp -r -u -f ./BFA_Assets/* . | ||
rm -r ./BFA_Assets | ||
rm -r ./base/renderprogs | ||
mkdir ./third-party-licenses | ||
mv ./build/vcpkg_installed/x64-linux/share/* ./third-party-licenses | ||
chmod +x DoomBFA | ||
chmod +x DoomBFA.sh | ||
rm -d -R ./build | ||
${{inputs.commands}} | ||
zip -m -r ${{inputs.artifact_name}}.zip . | ||
- name: Upload Artifact to release | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ inputs.upload_url }} | ||
asset_path: ${{github.workspace}}/${{inputs.artifact_name}}.zip | ||
asset_name: ${{inputs.artifact_name}}.zip | ||
asset_content_type: application/zip | ||
- name: Delete artifact zip file | ||
working-directory: ${{github.workspace}} | ||
run: rm ${{inputs.artifact_name}}.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,32 @@ | ||
name: Upload Artifact | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
artifact_name: | ||
required: true | ||
type: string | ||
executable_path: | ||
required: true | ||
type: string | ||
vcpkg_triplet: | ||
required: true | ||
type: string | ||
outputs: | ||
artifact_name: | ||
|
||
jobs: | ||
upload_artifact: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
artifact_name: ${{inputs.artifact_name}} | ||
|
||
steps: | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{inputs.artifact_name}} | ||
path: | | ||
${{inputs.executable_path}} | ||
./build/vcpkg_installed/${{inputs.vcpkg_triplet}}/share/*/copyright | ||
./base/* | ||
./BFA_Assets/* | ||
./base_new/* | ||
./COPYING.txt | ||
./alsoft.ini | ||
./README.md | ||
name: 'Upload Artifact' | ||
description: 'Package and upload an artiofact to the workflow storage' | ||
inputs: | ||
artifact_name: | ||
required: true | ||
type: string | ||
executable_path: | ||
required: true | ||
type: string | ||
vcpkg_triplet: | ||
required: true | ||
type: string | ||
outputs: | ||
artifact_name: | ||
description: 'Echo of the input' | ||
value: ${{inputs.artifact_name}} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{inputs.artifact_name}} | ||
path: | | ||
${{inputs.executable_path}} | ||
./build/vcpkg_installed/${{inputs.vcpkg_triplet}}/share/*/copyright | ||
./base/* | ||
./BFA_Assets/* | ||
./base_new/* | ||
./COPYING.txt | ||
./alsoft.ini | ||
./README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters