@@ -3,7 +3,8 @@ name: Create Test Builds
33on :
44 push :
55 branches :
6- - ' **'
6+ - main
7+ - beta
78 workflow_dispatch :
89 inputs :
910 Target :
1617 - linux
1718 - windows
1819 - macos
20+ Version :
21+ description : ' Firefox Version'
22+ required : true
23+ default : ' stable'
24+ type : choice
25+ options :
26+ - latest
27+ - beta
28+ - rc
29+ - stable
1930 pull_request_target :
2031 types :
2132 - opened
2233 - synchronize
2334
2435jobs :
36+ detect-version :
37+ runs-on : epsilon
38+ container :
39+ image : codeberg.org/librewolf/bsys6:dind
40+ outputs :
41+ ff_version : ${{ steps.detect.outputs.FF_VERSION }}
42+ ff_channel : ${{ steps.detect.outputs.FF_CHANNEL }}
43+ ff_build : ${{ steps.detect.outputs.FF_BUILD }}
44+ ff_beta_suffix : ${{ steps.detect.outputs.FF_BETA_SUFFIX }}
45+ ff_display : ${{ steps.detect.outputs.FF_DISPLAY }}
46+ steps :
47+ - name : Checkout Repository
48+ uses : actions/checkout@v4
49+ with :
50+ persist-credentials : false
51+
52+ - name : Install Dependencies
53+ run : |
54+ apt-get update
55+ apt-get -y install curl jq
56+
57+ - name : Detect Firefox Version
58+ id : detect
59+ run : |
60+ chmod +x ./scripts/detect-firefox-version.sh
61+ ./scripts/detect-firefox-version.sh --channel "${{ (github.ref == 'refs/heads/beta' || github.base_ref == 'beta') && 'latest' || inputs.Version || 'stable' }}" >> $FORGEJO_OUTPUT
62+
63+ # Read outputs
64+ while IFS='=' read -r key value; do
65+ export "$key=$value"
66+ done < $FORGEJO_OUTPUT
67+
68+ echo "========================================"
69+ echo "Firefox Version:"
70+ echo "========================================"
71+ echo "Version: $FF_VERSION"
72+ echo "Channel: $FF_CHANNEL"
73+ echo "Build: $FF_BUILD"
74+ echo "Beta Suffix: $FF_BETA_SUFFIX"
75+ echo "Display: $FF_DISPLAY"
76+ echo "========================================"
77+
2578 test-linux :
79+ needs : detect-version
2680 if : inputs.Target == 'all' || inputs.Target == 'linux' || inputs.Target == ''
2781 runs-on : epsilon
2882 container :
@@ -32,15 +86,23 @@ jobs:
3286 uses : actions/checkout@v4
3387 with :
3488 submodules : recursive
89+ persist-credentials : false
3590
3691 - name : Install Dependencies
3792 run : |
3893 apt-get update && apt-get -y upgrade
3994 apt-get -y install build-essential curl jq make python3 python3-dev python3-pip wget unzip git pigz gnupg
4095
96+ - name : Setup Version
97+ run : |
98+ echo "Testing against: ${{ needs.detect-version.outputs.ff_display }}"
99+ echo "${{ needs.detect-version.outputs.ff_version }}" > version
100+
41101 - name : Fetching Firefox Source
42102 run : |
43- make fetch
103+ make fetch FF_CHANNEL=${{ needs.detect-version.outputs.ff_channel }} \
104+ FF_BUILD=${{ needs.detect-version.outputs.ff_build || 'build1' }} \
105+ FF_BETA_SUFFIX=${{ needs.detect-version.outputs.ff_beta_suffix }}
44106
45107 - name : Check Patchfail
46108 run : |
60122 retention-days : ${{ github.event_name == 'push' && 3 || 14 }}
61123
62124 test-windows :
125+ needs : detect-version
63126 if : inputs.Target == 'all' || inputs.Target == 'windows'
64127 runs-on : epsilon
65128 container :
@@ -69,15 +132,23 @@ jobs:
69132 uses : actions/checkout@v4
70133 with :
71134 submodules : recursive
135+ persist-credentials : false
72136
73137 - name : Install Dependencies
74138 run : |
75139 apt-get update && apt-get -y upgrade
76140 apt-get -y install build-essential curl jq make python3 python3-dev python3-pip wget unzip git pigz gnupg
77141
142+ - name : Setup Version
143+ run : |
144+ echo "Testing against: ${{ needs.detect-version.outputs.ff_display }}"
145+ echo "${{ needs.detect-version.outputs.ff_version }}" > version
146+
78147 - name : Fetching Firefox Source
79148 run : |
80- make fetch
149+ make fetch FF_CHANNEL=${{ needs.detect-version.outputs.ff_channel }} \
150+ FF_BUILD=${{ needs.detect-version.outputs.ff_build || 'build1' }} \
151+ FF_BETA_SUFFIX=${{ needs.detect-version.outputs.ff_beta_suffix }}
81152
82153 - name : Check Patchfail
83154 run : |
97168 retention-days : ${{ github.event_name == 'push' && 3 || 14 }}
98169
99170 test-macos :
171+ needs : detect-version
100172 if : inputs.Target == 'all' || inputs.Target == 'macos'
101173 runs-on : epsilon
102174 container :
@@ -106,15 +178,23 @@ jobs:
106178 uses : actions/checkout@v4
107179 with :
108180 submodules : recursive
181+ persist-credentials : false
109182
110183 - name : Install Dependencies
111184 run : |
112185 apt-get update && apt-get -y upgrade
113186 apt-get -y install build-essential curl jq make python3 python3-dev python3-pip wget unzip git pigz gnupg
114187
188+ - name : Setup Version
189+ run : |
190+ echo "Testing against: ${{ needs.detect-version.outputs.ff_display }}"
191+ echo "${{ needs.detect-version.outputs.ff_version }}" > version
192+
115193 - name : Fetching Firefox Source
116194 run : |
117- make fetch
195+ make fetch FF_CHANNEL=${{ needs.detect-version.outputs.ff_channel }} \
196+ FF_BUILD=${{ needs.detect-version.outputs.ff_build || 'build1' }} \
197+ FF_BETA_SUFFIX=${{ needs.detect-version.outputs.ff_beta_suffix }}
118198
119199 - name : Check Patchfail
120200 run : |
0 commit comments