-
-
Notifications
You must be signed in to change notification settings - Fork 839
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Test weekly that the Dockerfile in web is able to build the brows…
…er extensions
- Loading branch information
1 parent
dad3963
commit 8f15aa3
Showing
1 changed file
with
45 additions
and
0 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,45 @@ | ||
name: Test extension builder Dockerfile | ||
|
||
on: | ||
#Run weekly every Thursday (one day before AMO submission) | ||
schedule: | ||
- cron: "0 2 * * 5" | ||
|
||
#Allow for manual tests if needed | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test-dockerfile: | ||
name: Test the Dockerfile | ||
runs-on: ubuntu-22.04 | ||
|
||
if: github.repository == 'ruffle-rs/ruffle' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Generate version seal | ||
env: | ||
ENABLE_VERSION_SEAL: true | ||
working-directory: ./web | ||
run: | | ||
npm install | ||
node packages/core/tools/set_version.js | ||
- name: Build Docker image with Ruffle in it | ||
run: docker build --tag ruffle-web-docker -f web/docker/Dockerfile . | ||
|
||
- name: Copy extensions out of Docker image | ||
run: docker cp $(docker create ruffle-web-docker:latest):/ruffle/web/packages web/docker/docker_builds/packages | ||
|
||
- name: Check that the Firefox extension was built | ||
run: test -f web/docker/docker_builds/packages/extension/dist/firefox_unsigned.xpi | ||
|
||
- name: Notify Discord | ||
uses: th0th/[email protected] | ||
if: ${{ always() }} | ||
env: | ||
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_UPDATES }} | ||
GITHUB_ACTOR: ${{ github.actor }} | ||
GITHUB_JOB_NAME: "Build extension via Dockerfile" | ||
GITHUB_JOB_STATUS: ${{ job.status }} |