-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38ba543
commit a72938b
Showing
4 changed files
with
88 additions
and
1 deletion.
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,86 @@ | ||
name: Build pull request artifacts | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Disable git core.autocrlf | ||
run: git config --global core.autocrlf false | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node 20.10.0 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20.10.0' | ||
|
||
- name: Setup node_modules cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
|
||
- name: Install package dependencies | ||
run: yarn install | ||
|
||
- name: Lint | ||
run: yarn lint | ||
|
||
- name: Test | ||
run: yarn test | ||
|
||
- name: Build app/ | ||
run: yarn build | ||
env: | ||
NODE_ENV: production | ||
BUGSNAG_API_KEY: ${{ secrets.BUGSNAG_API_KEY }} | ||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} | ||
|
||
- name: Build Windows Package | ||
if: ${{ matrix.os == 'windows-latest'}} | ||
run: yarn electron-builder --x64 --win nsis | ||
env: | ||
CSC_LINK: ${{ secrets.WIN_CSC_LINK }} | ||
CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }} | ||
|
||
- name: Build MacOS Package | ||
if: ${{ matrix.os == 'macos-latest'}} | ||
run: | | ||
sudo mdutil -a -i off | ||
yarn electron-builder --publish never --mac --universal | ||
env: | ||
CSC_LINK: ${{ secrets.MAC_CSC_LINK }} | ||
CSC_KEY_PASSWORD: ${{ secrets.MAC_CSC_KEY_PASSWORD }} | ||
CSC_FOR_PULL_REQUEST: true | ||
APPLEID: ${{ secrets.APPLEID }} | ||
APPLEIDPASS: ${{ secrets.APPLEIDPASS }} | ||
ASC_PROVIDER: 'S6UPZG7ZR3' | ||
|
||
- name: Build Ubuntu Package | ||
if: ${{ matrix.os == 'ubuntu-latest'}} | ||
run: yarn electron-builder --publish never --linux snap | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ runner.os }} Artifacts | ||
path: | | ||
dist/rocketchat-*.dmg | ||
dist/rocketchat-*.exe | ||
dist/rocketchat-*.snap |
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
Binary file not shown.