-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Cysharp/feature/actions
feat: build with reusable actions
- Loading branch information
Showing
3 changed files
with
67 additions
and
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Build-Debug | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- "master" | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-unity: | ||
if: "((github.event_name == 'push' && github.repository_owner == 'Cysharp') || startsWith(github.event.pull_request.head.label, 'Cysharp:'))" | ||
strategy: | ||
matrix: | ||
unity: ["2019.3.9f1"] | ||
include: | ||
- unity: 2019.3.9f1 | ||
license: UNITY_LICENSE_2019 | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# Execute scripts: Export Package | ||
# /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod PackageExporter.Export | ||
- name: Export unitypackage | ||
uses: game-ci/unity-builder@v2 | ||
env: | ||
UNITY_LICENSE: ${{ secrets[matrix.license] }} | ||
with: | ||
projectPath: src/CsprojModifier | ||
unityVersion: ${{ matrix.unity }} | ||
targetPlatform: StandaloneLinux64 | ||
buildMethod: PackageExporter.Export | ||
versioning: None | ||
|
||
- uses: Cysharp/Actions/.github/actions/check-metas@main # check meta files | ||
with: | ||
directory: src/CsprojModifier | ||
|
||
# Store artifacts. | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: CsprojModifier.${{ matrix.unity }}.unitypackage | ||
path: ./src/CsprojModifier/*.unitypackage |
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,24 +1,10 @@ | ||
name: "Close stale issues" | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
# enable issue | ||
stale-issue-message: "This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days." | ||
stale-issue-label: "stale" | ||
# enable pr | ||
stale-pr-message: "This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days." | ||
stale-pr-label: "stale" | ||
days-before-stale: 90 | ||
days-before-close: 7 | ||
exempt-issue-labels: "wip" | ||
exempt-pr-labels: "wip" | ||
remove-stale-when-updated: true | ||
uses: Cysharp/Actions/.github/workflows/stale-issue.yaml@main |