Skip to content

Commit

Permalink
Use podman for gh
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-jimenez committed Nov 22, 2024
1 parent db99075 commit 8bc014f
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,46 @@ on:
- 'v*'
name: Release

env:
IMAGE_NAME: libplasma

jobs:
build:
name: Release
runs-on: ubuntu-latest

permissions:
packages: write
contents: write

steps:
- name: Install dependencies
run: sudo apt-get install -y libplasma-dev
- name: Checkout code
uses: actions/checkout@v4
- name: Build project

- name: Install dependencies with buildah
run: |
ctr=$(buildah from "archlinux")
buildah config \
--cmd /usr/bin/bash $ctr
buildah run "$ctr" -- pacman \
--noconfirm -Syu
buildah run "$ctr" -- pacman \
--noconfirm -Sy \
libplasma cmake
buildah commit -- "$ctr" "$IMAGE_NAME"
buildah rm "$ctr"
- name: Build project using podman
id: build_project
run: |
VERSION=${GITHUB_REF_NAME#v}
echo "path=Luna3-${VERSION}.plasmoid" >> "$GITHUB_OUTPUT"
sed -Eie 's#"Version": "[0-9.]+",#"Version": "${{ github.ref }}",#' package/metadata.json
sed -Eie 's#refs/tags/v##' package/metadata.json
make plasmoid
podman run \
--mount type=bind,src=${GITHUB_WORKSPACE},dst=/root/,Z \
"$IMAGE_NAME" \
make plasmoid
- name: Create Release
id: create_release
Expand Down

0 comments on commit 8bc014f

Please sign in to comment.