summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/labeler.yaml5
-rw-r--r--.github/workflows/build.yaml43
-rw-r--r--.github/workflows/stale.yaml2
-rw-r--r--.github/workflows/tag-release.yaml48
4 files changed, 85 insertions, 13 deletions
diff --git a/.github/labeler.yaml b/.github/labeler.yaml
index d31a361baf..5a6590d4aa 100644
--- a/.github/labeler.yaml
+++ b/.github/labeler.yaml
@@ -1,6 +1,6 @@
llappearance:
- indra/llappearance/**/*
-
+
llaudio:
- indra/llaudio/**/*
@@ -76,3 +76,6 @@ c/cpp:
- '**/*.i'
- '**/*.inl'
- '**/*.y'
+
+'team:viewer':
+ - '*'
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index e3cc2f8527..964e4e3e0b 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -1,12 +1,6 @@
name: Build
on:
- workflow_dispatch:
- inputs:
- release_run:
- type: boolean
- description: Do a release of this build
- default: false
pull_request:
push:
branches: ["main", "release/*", "project/*"]
@@ -249,6 +243,9 @@ jobs:
elif [[ "$prefix" == "release" || "$prefix" == "main" ]];
then
export viewer_channel="Second Life Release"
+ elif [[ "$branch" == "develop" ]];
+ then
+ export viewer_channel="Second Life Develop"
else
export viewer_channel="Second Life Test"
fi
@@ -399,15 +396,32 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
+ - name: Download viewer exe
+ uses: actions/download-artifact@v4
+ with:
+ name: Windows-app
+ path: _artifacts
+ - name: Download Windows Symbols
+ if: env.BUGSPLAT_USER && env.BUGSPLAT_PASS
+ uses: actions/download-artifact@v4
+ with:
+ name: Windows-symbols
+ - name: Extract viewer pdb
+ if: env.BUGSPLAT_USER && env.BUGSPLAT_PASS
+ shell: bash
+ run: |
+ tar -xJf "${{ needs.build.outputs.viewer_channel }}.sym.tar.xz" -C _artifacts
- name: Post Windows symbols
if: env.BUGSPLAT_USER && env.BUGSPLAT_PASS
- uses: secondlife/viewer-build-util/post-bugsplat-windows@v2
+ uses: secondlife-3p/symbol-upload@v10
with:
username: ${{ env.BUGSPLAT_USER }}
password: ${{ env.BUGSPLAT_PASS }}
database: "SecondLife_Viewer_2018"
- channel: ${{ needs.build.outputs.viewer_channel }}
+ application: ${{ needs.build.outputs.viewer_channel }}
version: ${{ needs.build.outputs.viewer_version }}
+ directory: _artifacts
+ files: "**/{SecondLifeViewer.exe,llwebrtc.dll,*.pdb}"
post-mac-symbols:
env:
@@ -416,15 +430,22 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
+ - name: Download Mac Symbols
+ if: env.BUGSPLAT_USER && env.BUGSPLAT_PASS
+ uses: actions/download-artifact@v4
+ with:
+ name: macOS-symbols
- name: Post Mac symbols
if: env.BUGSPLAT_USER && env.BUGSPLAT_PASS
- uses: secondlife/viewer-build-util/post-bugsplat-mac@v2
+ uses: secondlife-3p/symbol-upload@v10
with:
username: ${{ env.BUGSPLAT_USER }}
password: ${{ env.BUGSPLAT_PASS }}
database: "SecondLife_Viewer_2018"
- channel: ${{ needs.build.outputs.viewer_channel }}
- version: ${{ needs.build.outputs.viewer_version }}
+ application: ${{ needs.build.outputs.viewer_channel }}
+ version: ${{ needs.build.outputs.viewer_version }} (${{ needs.build.outputs.viewer_version }})
+ directory: .
+ files: "**/*.xcarchive.zip"
release:
needs: [setvar, build, sign-and-package-windows, sign-and-package-mac]
diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml
index e44e223589..f77151a815 100644
--- a/.github/workflows/stale.yaml
+++ b/.github/workflows/stale.yaml
@@ -1,4 +1,4 @@
-name: Stale PRs
+name: Stale PRs
on:
workflow_dispatch:
schedule:
diff --git a/.github/workflows/tag-release.yaml b/.github/workflows/tag-release.yaml
new file mode 100644
index 0000000000..b73ec502f1
--- /dev/null
+++ b/.github/workflows/tag-release.yaml
@@ -0,0 +1,48 @@
+name: Tag a Build
+
+on:
+ # schedule event triggers always run on the default branch
+ # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
+ schedule:
+ # run "nightly" builds on default branch every mon/wed/fri
+ - cron: "21 2 * * 2,4,6" # 2:21am UTC tues/thurs/sat == 7:21pm PDT mon/wed/fri -- see https://crontab.guru/#21_01_*_*_2,4,6
+ workflow_dispatch:
+ inputs:
+ channel:
+ description: "Channel to configure the build"
+ required: true
+ type: choice
+ default: "Test"
+ options:
+ - "Test"
+ - "Develop"
+ - "Project"
+ - "Release"
+ project:
+ description: "Project Name (used for channel name in project builds, and tag name for all builds)"
+ default: "hippo"
+ # TODO - add an input for selecting another sha to build other than head of branch
+
+jobs:
+ tag-release:
+ runs-on: ubuntu-latest
+ env:
+ GITHUB_TAG_TOKEN: ${{ secrets.GITHUB_TAG_TOKEN }}
+ steps:
+ - name: Setup Env Vars
+ run: |
+ CHANNEL="${{ inputs.channel }}"
+ echo VIEWER_CHANNEL="Second_Life_${CHANNEL:-Develop}" >> ${GITHUB_ENV}
+ echo NIGHTLY_DATE=$(date --rfc-3339=date) >> ${GITHUB_ENV}
+ - name: Update Tag
+ uses: actions/github-script@v7.0.1
+ if: env.GITHUB_TAG_TOKEN
+ with:
+ github-token: ${{ env.GITHUB_TAG_TOKEN }}
+ script: |
+ github.rest.git.createRef(
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ ref: "refs/tags/${{ env.VIEWER_CHANNEL }}#${{ env.NIGHTLY_DATE }}",
+ sha: context.sha
+ )