mirror of
https://github.com/13hannes11/focus_annotator.git
synced 2024-09-03 23:21:01 +02:00
split up jobs
This commit is contained in:
committed by
GitHub
parent
e828de7d43
commit
e2a010f58b
31
.github/workflows/rust.yml
vendored
31
.github/workflows/rust.yml
vendored
@@ -3,31 +3,42 @@ name: Rust
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Build
|
- name: Build
|
||||||
run: docker-compose up
|
run: docker-compose up
|
||||||
- name: Build (Windows)
|
|
||||||
run: docker-compose -f docker-compose.windows.yml up
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v2.3.1
|
uses: actions/upload-artifact@v2.3.1
|
||||||
with:
|
with:
|
||||||
name: executables
|
name: executables
|
||||||
path: |
|
path: |
|
||||||
*.AppImage
|
*.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
|
*.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
|
run: ls
|
||||||
|
|
||||||
- name: pwd
|
|
||||||
run: pwd
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user