-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add a job to run a nightly build on various Linux distros
- Loading branch information
Showing
2 changed files
with
56 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 |
---|---|---|
|
@@ -16,6 +16,9 @@ permissions: | |
# Push images to GHCR. | ||
packages: write | ||
|
||
env: | ||
FEDORA_VERSION: 41 | ||
|
||
jobs: | ||
build: | ||
if: github.repository == 'LadybirdBrowser/ladybird' | ||
|
@@ -32,9 +35,19 @@ jobs: | |
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build Base Dev Container Image | ||
- name: Build Ubuntu Base Dev Container Image | ||
uses: devcontainers/[email protected] | ||
with: | ||
imageName: ghcr.io/ladybirdbrowser/ladybird-devcontainer | ||
imageTag: base,latest | ||
push: always | ||
|
||
- name: Build Fedora CI Dev Container Image | ||
uses: devcontainers/[email protected] | ||
env: | ||
VERSION: ${{ env.FEDORA_VERSION }} | ||
with: | ||
imageName: ghcr.io/ladybirdbrowser/ladybird-ci-fedora | ||
imageTag: ${{ env.FEDORA_VERSION }},latest | ||
push: always | ||
subFolder: .devcontainer/fedora-ci |
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,42 @@ | ||
name: 'Nightly Linux Distro Builds' | ||
on: | ||
push: | ||
paths: | ||
- '.devcontainer/**' | ||
- 'vcpkg.json' | ||
|
||
# Run daily at 02:30. | ||
schedule: | ||
- cron: '30 2 * * *' | ||
|
||
# Allows you to run this workflow manually from the Actions tab on GitHub. | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
packages: read | ||
|
||
jobs: | ||
build: | ||
if: github.repository == 'LadybirdBrowser/ladybird' | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run default build in Fedora container | ||
uses: devcontainers/[email protected] | ||
with: | ||
cacheFrom: ghcr.io/ladybirdbrowser/ladybird-ci-fedora:latest | ||
push: never | ||
subFolder: .devcontainer/fedora-ci | ||
runCmd: Meta/ladybird.sh test | ||
|