-
-
Notifications
You must be signed in to change notification settings - Fork 8
50 lines (45 loc) · 1.64 KB
/
nightly.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: nightly
on:
workflow_dispatch:
schedule:
# 8 PM UTC every day
- cron: "0 20 * * *"
# Don't allow concurrent runs of workflows deploying to same target
concurrency:
group: build-and-deploy-to-${{ vars.DEPLOY_URL }}
cancel-in-progress: false
jobs:
build:
strategy:
fail-fast: false
matrix:
DEB_DISTRO: [jammy, noble]
ARCH: [x64, arm64]
uses: ./.github/workflows/build.yaml
with:
DEB_DISTRO: ${{ matrix.DEB_DISTRO }}
ARCH: ${{ matrix.ARCH }}
ROS_SOURCES: ros-one.repos
INSTALL_GPG_KEYS: |
sudo curl -sSL https://ros.packages.techfak.net/gpg.key -o /etc/apt/keyrings/ros-one-keyring.gpg
sudo mkdir -p /etc/ros/rosdep/sources.list.d
echo "yaml https://ros.packages.techfak.net/ros-one.yaml ${{ matrix.DEB_DISTRO }}" | sudo tee /etc/ros/rosdep/sources.list.d/1-ros-one.list
EXTRA_DEB_SOURCES: "deb [signed-by=/etc/apt/keyrings/ros-one-keyring.gpg] https://ros.packages.techfak.net ${{matrix.DEB_DISTRO}}-testing main"
# proceed from existing debs artifact if run_attempt > 1
DOWNLOAD_DEBS: ${{ github.run_attempt != '1' }}
DEBS_ARTIFACT_NAME: ${{ matrix.DEB_DISTRO }}-${{ matrix.ARCH }}-debs
SKIP_EXISTING: true
SKIP_KNOWN_FAILING: true
CONTINUE_ON_ERROR: true
INSTALL_TO_CHROOT: false
deploy:
needs: build
if: ${{ !cancelled() && vars.DEPLOY_URL }}
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Import build artifacts to reprepro server
uses: ./reprepro
with:
url: "${{ vars.DEPLOY_URL }}?run_id=${{ github.run_id }}"