Merge pull request #102 from EasyTier/fix-gui-workflow
rename workflow job name for gui
This commit is contained in:
@@ -3,16 +3,8 @@ name: EasyTier Core
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["develop", "main"]
|
branches: ["develop", "main"]
|
||||||
paths:
|
|
||||||
- "easytier.toml"
|
|
||||||
- "easytier/**"
|
|
||||||
- ".github/workflows/core.yml"
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["develop", "main"]
|
branches: ["develop", "main"]
|
||||||
paths:
|
|
||||||
- "easytier.toml"
|
|
||||||
- "easytier/**"
|
|
||||||
- ".github/workflows/core.yml"
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
@@ -23,6 +15,20 @@ defaults:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
pre_job:
|
||||||
|
# continue-on-error: true # Uncomment once integration is finished
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# Map a step output to a job output
|
||||||
|
outputs:
|
||||||
|
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
||||||
|
steps:
|
||||||
|
- id: skip_check
|
||||||
|
uses: fkirc/skip-duplicate-actions@v5
|
||||||
|
with:
|
||||||
|
# All of these options are optional, so you can remove them if you are happy with the defaults
|
||||||
|
concurrent_skipping: 'never'
|
||||||
|
skip_after_successful_duplicate: 'true'
|
||||||
|
paths: '["Cargo.toml", "easytier/**", ".github/workflows/core.yml"]'
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -50,6 +56,8 @@ jobs:
|
|||||||
TARGET: ${{ matrix.TARGET }}
|
TARGET: ${{ matrix.TARGET }}
|
||||||
OS: ${{ matrix.OS }}
|
OS: ${{ matrix.OS }}
|
||||||
OSS_BUCKET: ${{ secrets.ALIYUN_OSS_BUCKET }}
|
OSS_BUCKET: ${{ secrets.ALIYUN_OSS_BUCKET }}
|
||||||
|
needs: pre_job
|
||||||
|
if: needs.pre_job.outputs.should_skip != 'true'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|||||||
+19
-13
@@ -3,18 +3,8 @@ name: EasyTier GUI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["develop", "main"]
|
branches: ["develop", "main"]
|
||||||
paths:
|
|
||||||
- "easytier.toml"
|
|
||||||
- "easytier/**"
|
|
||||||
- "easytier-gui/**"
|
|
||||||
- ".github/workflows/gui.yml"
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["develop", "main"]
|
branches: ["develop", "main"]
|
||||||
paths:
|
|
||||||
- "easytier.toml"
|
|
||||||
- "easytier/**"
|
|
||||||
- "easytier-gui/**"
|
|
||||||
- ".github/workflows/gui.yml"
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
@@ -25,7 +15,21 @@ defaults:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
pre_job:
|
||||||
|
# continue-on-error: true # Uncomment once integration is finished
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# Map a step output to a job output
|
||||||
|
outputs:
|
||||||
|
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
||||||
|
steps:
|
||||||
|
- id: skip_check
|
||||||
|
uses: fkirc/skip-duplicate-actions@v5
|
||||||
|
with:
|
||||||
|
# All of these options are optional, so you can remove them if you are happy with the defaults
|
||||||
|
concurrent_skipping: 'never'
|
||||||
|
skip_after_successful_duplicate: 'true'
|
||||||
|
paths: '["Cargo.toml", "easytier/**", "easytier-gui/**", ".github/workflows/gui.yml"]'
|
||||||
|
build-gui:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -54,6 +58,8 @@ jobs:
|
|||||||
OS: ${{ matrix.OS }}
|
OS: ${{ matrix.OS }}
|
||||||
GUI_TARGET: ${{ matrix.GUI_TARGET }}
|
GUI_TARGET: ${{ matrix.GUI_TARGET }}
|
||||||
OSS_BUCKET: ${{ secrets.ALIYUN_OSS_BUCKET }}
|
OSS_BUCKET: ${{ secrets.ALIYUN_OSS_BUCKET }}
|
||||||
|
needs: pre_job
|
||||||
|
if: needs.pre_job.outputs.should_skip != 'true'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@@ -236,7 +242,7 @@ jobs:
|
|||||||
- name: Archive artifact
|
- name: Archive artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: easytier-${{ matrix.OS }}-${{ matrix.TARGET }}
|
name: easytier-gui-${{ matrix.OS }}-${{ matrix.TARGET }}
|
||||||
path: |
|
path: |
|
||||||
./artifacts/*
|
./artifacts/*
|
||||||
|
|
||||||
@@ -249,6 +255,6 @@ jobs:
|
|||||||
endpoint: ${{ secrets.ALIYUN_OSS_ENDPOINT }}
|
endpoint: ${{ secrets.ALIYUN_OSS_ENDPOINT }}
|
||||||
bucket: ${{ secrets.ALIYUN_OSS_BUCKET }}
|
bucket: ${{ secrets.ALIYUN_OSS_BUCKET }}
|
||||||
local-path: ./artifacts/
|
local-path: ./artifacts/
|
||||||
remote-path: /easytier-releases/${{ github.sha }}/
|
remote-path: /easytier-releases/${{ github.sha }}/gui
|
||||||
no-delete-remote-files: true
|
no-delete-remote-files: true
|
||||||
retry: 5
|
retry: 5
|
||||||
+14
-10
@@ -3,18 +3,8 @@ name: EasyTier Test
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["develop", "main"]
|
branches: ["develop", "main"]
|
||||||
paths:
|
|
||||||
- "easytier.toml"
|
|
||||||
- "easytier/**"
|
|
||||||
- "easytier-gui/**"
|
|
||||||
- ".github/workflows/test.yml"
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["develop", "main"]
|
branches: ["develop", "main"]
|
||||||
paths:
|
|
||||||
- "easytier.toml"
|
|
||||||
- "easytier/**"
|
|
||||||
- "easytier-gui/**"
|
|
||||||
- ".github/workflows/test.yml"
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
@@ -25,6 +15,20 @@ defaults:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
pre_job:
|
||||||
|
# continue-on-error: true # Uncomment once integration is finished
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# Map a step output to a job output
|
||||||
|
outputs:
|
||||||
|
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
||||||
|
steps:
|
||||||
|
- id: skip_check
|
||||||
|
uses: fkirc/skip-duplicate-actions@v5
|
||||||
|
with:
|
||||||
|
# All of these options are optional, so you can remove them if you are happy with the defaults
|
||||||
|
concurrent_skipping: 'never'
|
||||||
|
skip_after_successful_duplicate: 'true'
|
||||||
|
paths: '["Cargo.toml", "easytier/**", ".github/workflows/test.yml"]'
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user