Skip to content

Commit

Permalink
CI: Add a job to run a nightly build on various Linux distros
Browse files Browse the repository at this point in the history
  • Loading branch information
ADKaster committed Dec 25, 2024
1 parent 21d8d46 commit e29c91e
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/dev-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ permissions:
# Push images to GHCR.
packages: write

env:
FEDORA_VERSION: 41

jobs:
build:
if: github.repository == 'LadybirdBrowser/ladybird'
Expand All @@ -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
42 changes: 42 additions & 0 deletions .github/workflows/nightly-linux-distro.yml
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

0 comments on commit e29c91e

Please sign in to comment.