-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: improve add workflow dispatch to workflows (#319)
- Loading branch information
Showing
10 changed files
with
54 additions
and
22 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
name: front-admin-build | ||
|
||
on: | ||
|
||
workflow_dispatch: | ||
|
||
push: | ||
paths: | ||
- "defs/**" | ||
|
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,6 +1,9 @@ | ||
name: front-admin-typecheck | ||
|
||
on: | ||
|
||
workflow_dispatch: | ||
|
||
push: | ||
paths: | ||
- "defs/**" | ||
|
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,6 +1,9 @@ | ||
name: front-server-build | ||
|
||
on: | ||
|
||
workflow_dispatch: | ||
|
||
push: | ||
paths: | ||
- "defs/**" | ||
|
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,6 +1,9 @@ | ||
name: front-server-unit-tests | ||
|
||
on: | ||
|
||
workflow_dispatch: | ||
|
||
push: | ||
paths: | ||
- "defs/**" | ||
|
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,6 +1,9 @@ | ||
name: front-studio-build | ||
|
||
on: | ||
|
||
workflow_dispatch: | ||
|
||
push: | ||
paths: | ||
- "defs/**" | ||
|
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,6 +1,9 @@ | ||
name: front-studio-typecheck | ||
|
||
on: | ||
|
||
workflow_dispatch: | ||
|
||
push: | ||
paths: | ||
- "defs/**" | ||
|
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 |
---|---|---|
|
@@ -12,40 +12,44 @@ jobs: | |
|
||
release: | ||
|
||
runs-on: self-hosted-release | ||
# runs-on: self-hosted-release | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
# - uses: Swatinem/rust-cache@v2 | ||
# with: | ||
# cache-all-crates: true | ||
# shared-key: release | ||
|
||
- name: Local cargo cache | ||
id: release-cargo-cache | ||
uses: MasterworksIO/[email protected] | ||
# cache-all-crates: true | ||
# shared-key: release | ||
|
||
# - name: Local cargo cache | ||
# id: release-cargo-cache | ||
# uses: MasterworksIO/[email protected] | ||
# with: | ||
# path: ./target/ | ||
# key: release-cargo-target | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/cache@v4 | ||
with: | ||
path: ./target/ | ||
key: release-cargo-target | ||
path: | | ||
./target | ||
~/.cargo | ||
key: ${{ runner.os }}-build-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml', './rs') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml', './rs') }} | ||
${{ runner.os }}-build- | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
# cache doesn't seem to work under tag branches, not even to recover from master branch saved cache | ||
# - uses: actions/cache@v3 | ||
# with: | ||
# path: ./target | ||
# key: ${{ runner.os }}-cargo-build-release-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml', './rs') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-cargo-build-release- | ||
|
||
- run: npm ci | ||
working-directory: ./scripts | ||
|
||
|