From e2a010f58b426eba38b21c0d4b4c59e0075cefa2 Mon Sep 17 00:00:00 2001 From: Hannes Kuchelmeister <13hannes11@users.noreply.github.com> Date: Tue, 22 Feb 2022 16:19:04 +0100 Subject: [PATCH] split up jobs --- .github/workflows/rust.yml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0706201..628c9cb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -3,31 +3,42 @@ name: Rust on: push: pull_request: - - env: CARGO_TERM_COLOR: always jobs: build: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - name: Build run: docker-compose up - - name: Build (Windows) - run: docker-compose -f docker-compose.windows.yml up - name: Upload Artifact uses: actions/upload-artifact@v2.3.1 with: name: executables path: | *.AppImage + build-windows: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build (Windows) + run: docker-compose -f docker-compose.windows.yml up + - name: rename windows artifact + run: mv package.zip windows.zip + - name: Upload Artifact + uses: actions/upload-artifact@v2.3.1 + with: + name: executables + path: | *.zip - - name: ls + + publish: + needs: [build, build-windows] + runs-on: ubuntu-latest + # if: startsWith(github.ref, 'refs/tags/v') + steps: + - uses: actions/download-artifact@v2 + - name: Display structure of downloaded files run: ls - - - name: pwd - run: pwd -