From a91a5156e60e7714badb62b5feb26b56922ee8dc Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Thu, 23 Sep 2021 09:33:52 +0300 Subject: [PATCH] mswin gh actions #20: try artifacts --- .github/workflows/windows.yml | 26 +++++++++++++++++++ .../translate-travis.yml-to-github-actions.py | 5 ++++ 2 files changed, 31 insertions(+) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 09676d849..fd599f9a4 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -225,6 +225,32 @@ jobs: ' shell: cmd + - name: upload build artifacts - Freecell Solver Zip Distribution for PySol + FC + uses: actions/upload-artifact@v2 + with: + name: Freecell Solver Zip Distribution for PySol FC + path: fc-solve\pkg-build\fc-solve-for-pysol.zip + - name: upload build artifacts - Freecell Solver Win32 Package + uses: actions/upload-artifact@v2 + with: + name: Freecell Solver Win32 Package + path: fc-solve\pkg-build\freecell-solver-*-win32.exe + - name: upload build artifacts - Freecell Solver Win64 Package + uses: actions/upload-artifact@v2 + with: + name: Freecell Solver Win64 Package + path: fc-solve\pkg-build-win64\freecell-solver-*-win64.exe + - name: upload build artifacts - Freecell Solver Win32 MSI Package + uses: actions/upload-artifact@v2 + with: + name: Freecell Solver Win32 MSI Package + path: fc-solve\pkg-build\freecell-solver-*.msi + - name: upload build artifacts - Freecell Solver Win64 MSI Package + uses: actions/upload-artifact@v2 + with: + name: Freecell Solver Win64 MSI Package + path: fc-solve\pkg-build-win64\freecell-solver-*.msi strategy: fail-fast: true matrix: diff --git a/fc-solve/CI-testing/translate-travis.yml-to-github-actions.py b/fc-solve/CI-testing/translate-travis.yml-to-github-actions.py index f6365f429..28e45a7e5 100644 --- a/fc-solve/CI-testing/translate-travis.yml-to-github-actions.py +++ b/fc-solve/CI-testing/translate-travis.yml-to-github-actions.py @@ -175,6 +175,11 @@ def _calc_batch_code(cmds): ), "shell": "cmd", }) + steps += [{ + 'name': "upload build artifacts - " + art['name'], + 'uses': "actions/upload-artifact@v2", + 'with': art + } for art in data['artifacts']] with open(output_path, "wt") as outfh: # yaml.safe_dump(o, outfh) yaml.safe_dump(skel, stream=outfh, canonical=False, indent=4, )