Skip to content

Commit 74587bc

Browse files
authored
Create blank.yml
1 parent 24bdd92 commit 74587bc

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

.github/workflows/blank.yml

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: build llvm
2+
concurrency:
3+
group: build-${{ github.ref }}
4+
cancel-in-progress: true
5+
6+
on:
7+
schedule:
8+
- cron: "0 7 1/14 * *"
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
container: artixlinux/artixlinux:latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: build
19+
run: |
20+
sed -i 's/DownloadUser/#DownloadUser/g' /etc/pacman.conf
21+
pacman -Syu --noconfirm base-devel strace patchelf curl wget \
22+
desktop-file-utils git artix-archlinux-support
23+
pacman-key --init && pacman-key --populate archlinux
24+
printf "\n[extra]\nInclude = /etc/pacman.d/mirrorlist-arch\n" | tee -a /etc/pacman.conf
25+
pacman -Syu --noconfirm \
26+
cmake \
27+
ninja \
28+
zlib \
29+
zstd \
30+
curl \
31+
libffi \
32+
libedit \
33+
libxml2 \
34+
python-setuptools \
35+
python-psutil \
36+
python-sphinx \
37+
python-myst-parser
38+
39+
sudo sed -i -e 's|-O2|-Os|' \
40+
-e 's|DEBUG_CFLAGS="-g"|DEBUG_CFLAGS="-g0"|'
41+
-e 's|-fno-omit-frame-pointer|-fomit-frame-pointer|' \
42+
-e 's|-mno-omit-leaf-frame-pointer||' \
43+
-e 's|Wp,-D_FORTIFY_SOURCE=3||' \
44+
-e 's|-fstack-clash-protection||' \
45+
-e 's|MAKEFLAGS=.*|MAKEFLAGS="-j$(nproc)"|' \
46+
-e 's|#MAKEFLAGS|MAKEFLAGS|' /etc/makepkg.conf
47+
cat /etc/makepkg.conf
48+
49+
echo "Hacking makepkg to allow building as root in the container..."
50+
sudo sed -i 's|EUID == 0|EUID == 69|g' /usr/bin/makepkg
51+
mkdir -p /usr/local/bin
52+
cp /usr/bin/makepkg /usr/local/bin
53+
54+
chmod +x ./llvm-minimal.sh
55+
./llvm-minimal.sh
56+
mkdir ./dist
57+
mv ./llvm-libs-*.pkg.tar.zst ./dist
58+
59+
- name: Upload artifact
60+
uses: actions/upload-artifact@v4
61+
with:
62+
name: llvm-libs
63+
path: 'dist'
64+
65+
release:
66+
needs: [build]
67+
permissions: write-all
68+
runs-on: ubuntu-latest
69+
70+
steps:
71+
- uses: actions/download-artifact@v4
72+
with:
73+
name: llvm-libs
74+
75+
- name: release
76+
uses: marvinpinto/action-automatic-releases@latest
77+
with:
78+
title: Continuous build
79+
automatic_release_tag: continuous
80+
prerelease: false
81+
draft: false
82+
files: |
83+
*.pkg.tar.zst
84+
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)