mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: Build Arch ISO with easy-arch.
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main # In case we adopt this convention in the future
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.gitignore'
|
|
- '**.md'
|
|
- '**.yml'
|
|
- 'LICENSE'
|
|
|
|
jobs:
|
|
shellcheck:
|
|
name: Shellcheck
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run ShellCheck
|
|
uses: ludeeus/action-shellcheck@master
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: archlinux:latest
|
|
options: --privileged
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Creating workspace.
|
|
run: mkdir -p /tmp/archlive/airootfs/root/
|
|
- name: Copying easy-arch in the workspace.
|
|
run: cp easy-arch.sh /tmp/archlive/airootfs/root/
|
|
- name: Updating container.
|
|
run: pacman -Sy
|
|
- name: Installing needed tools.
|
|
run: pacman --noconfirm -S git archiso
|
|
- name: Copying profile inside the workspace.
|
|
run: cp -r /usr/share/archiso/configs/releng/* /tmp/archlive
|
|
- name: Creating the ISO.
|
|
run: mkarchiso -v -w /tmp/archlive/work/ -o /tmp/archlive/out /tmp/archlive
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: Arch Live ISO
|
|
path: /tmp/archlive/out/*.iso
|