-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.zuul, playbooks: Run the CI on Arch Linux
- Loading branch information
1 parent
f900585
commit eed02a8
Showing
4 changed files
with
133 additions
and
0 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
/images/arch @Foxboron | ||
/images/rhel @debarshiray @olivergs | ||
/images/ubuntu @Jmennius | ||
/playbooks/arch @Foxboron |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# | ||
# Copyright © 2024 Red Hat, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
- name: Install Arch Linux packages | ||
become: yes | ||
package: | ||
name: | ||
- apache | ||
- bash-completion | ||
- bats | ||
- codespell | ||
- crun | ||
- fish | ||
- flatpak | ||
- gcc | ||
- go | ||
- go-md2man | ||
- meson | ||
- ninja | ||
- openssl | ||
- pkgconf | ||
- podman | ||
- shadow | ||
- shellcheck | ||
- skopeo | ||
- systemd | ||
- udisks2 | ||
update_cache: "{{ true if zuul.attempts > 1 else false }}" | ||
|
||
- name: Download Go modules | ||
command: go mod download -x | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}/src' | ||
|
||
- name: Initialize Git submodules | ||
command: git submodule init | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}' | ||
|
||
- name: Update Git submodules | ||
command: git submodule update | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}' | ||
|
||
- name: Check versions of crucial packages | ||
command: pacman --query bash bats codespell conmon containers-common crun flatpak gcc glibc go go-md2man linux podman shadow shellcheck skopeo | ||
|
||
- name: Show Podman version | ||
command: podman version | ||
|
||
- name: Show Podman related system information | ||
command: podman info --debug |
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,25 @@ | ||
# | ||
# Copyright © 2021 – 2024 Red Hat, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
--- | ||
- hosts: all | ||
tasks: | ||
- include_tasks: dependencies.yaml | ||
|
||
- name: Set up build directory | ||
command: meson setup --fatal-meson-warnings builddir | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}' |