2022-06-07 17:00:41 +05:00
|
|
|
name: Build
|
2022-06-07 16:35:05 +05:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "develop" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "develop" ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
2022-06-07 17:00:41 +05:00
|
|
|
archlinux:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
arch:
|
|
|
|
[
|
|
|
|
"linux/amd64 x86_64"
|
|
|
|
]
|
|
|
|
name: "Archlinux ${{ matrix.arch }}"
|
2022-06-07 16:35:05 +05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-06-07 17:00:41 +05:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
with:
|
|
|
|
platforms: all
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
id: buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
with:
|
|
|
|
version: latest
|
|
|
|
- name: Read info
|
|
|
|
id: tags
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
arch="${{ matrix.arch }}"
|
|
|
|
echo ::set-output name=PLATFORM::${arch%% *}
|
|
|
|
echo ::set-output name=ARCH::${arch##* }
|
2022-06-07 17:57:45 +05:00
|
|
|
|
2022-06-07 17:00:41 +05:00
|
|
|
- name: Build ${{ matrix.arch }} release
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
docker buildx build --platform ${{ steps.tags.outputs.PLATFORM }} \
|
|
|
|
--tag cachyos_welcome:${{ steps.tags.outputs.ARCH }} \
|
|
|
|
-f .github/archlinux/Dockerfile \
|
|
|
|
--load \
|
|
|
|
.
|
2022-06-28 00:11:15 +05:00
|
|
|
|
|
|
|
fmt:
|
|
|
|
name: rust fmt
|
2022-06-28 01:24:39 +05:00
|
|
|
runs-on: ubuntu-22.04
|
2022-06-28 00:11:15 +05:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-06-28 01:07:16 +05:00
|
|
|
- uses: actions/setup-python@v1
|
2022-06-28 00:11:15 +05:00
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: nightly
|
|
|
|
override: true
|
|
|
|
components: rustfmt
|
2022-06-28 00:25:16 +05:00
|
|
|
|
|
|
|
- name: install deps
|
|
|
|
run: |
|
|
|
|
sudo apt update
|
2022-06-28 01:09:10 +05:00
|
|
|
sudo apt install ninja-build libgtk-3-dev
|
2022-06-28 00:25:16 +05:00
|
|
|
shell: bash
|
|
|
|
|
2022-06-28 01:07:16 +05:00
|
|
|
- uses: BSFishy/pip-action@v1
|
|
|
|
with:
|
|
|
|
packages: meson
|
|
|
|
|
2022-06-28 00:25:16 +05:00
|
|
|
- name: Configure
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
meson --buildtype=release --prefix=/usr build
|
|
|
|
|
2022-06-28 00:11:15 +05:00
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
|
|
|
args: --all -- --check
|