build dosyası düzenleme 6
All checks were successful
MusicPlayer Fedora Build / fedora-compilation (push) Successful in 5m12s

This commit is contained in:
2026-03-29 14:45:52 +03:00
parent 833520d529
commit c015c2420b

View File

@@ -5,13 +5,12 @@ jobs:
fedora-compilation: fedora-compilation:
runs-on: fedora-latest runs-on: fedora-latest
steps: steps:
- name: Paketleri ve Git'i Kur - name: Gerekli Araçları Kur
run: | run: |
dnf install -y git gcc gcc-c++ make cmake pkgconfig dnf install -y git gcc gcc-c++ make cmake pkgconfig curl
- name: Kodları Manuel Çek - name: Kodları Manuel Çek
run: | run: |
# Gitea içindeki servis adını kullanarak kodu çekiyoruz
git clone https://git.y1lm0z.me/y1lm0z/cmus.git . git clone https://git.y1lm0z.me/y1lm0z/cmus.git .
- name: Bağımlılıkları Kur - name: Bağımlılıkları Kur
@@ -29,21 +28,18 @@ jobs:
- name: Derle - name: Derle
run: | run: |
if [ -f ./configure ]; then if [ -f ./configure ]; then ./configure prefix=/usr && make -j$(nproc);
./configure prefix=/usr elif [ -f CMakeLists.txt ]; then mkdir -p build && cd build && cmake .. && make -j$(nproc);
make -j$(nproc) else make -j$(nproc); fi
elif [ -f CMakeLists.txt ]; then
mkdir -p build && cd build - name: Manuel Release Yükle (API ile)
cmake .. run: |
make -j$(nproc) # Derlenen dosyayı zipleyelim
else tar -czvf cmus-fedora.tar.gz cmus cmus-remote
make -j$(nproc)
fi # Gitea API kullanarak dosyayı "Attachment" olarak yükle
- name: Derlenen Dosyaları Pakete Koy # Gitea iç network üzerinden token ile gönderiyoruz
uses: actions/upload-artifact@v3 # Not: 'secrets.RELEASE_TOKEN' kısmını aşağıda açıklayacağım
with: curl -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
name: cmus-fedora-derlemesi # İndireceğin zip dosyasının adı -F "attachment=@cmus-fedora.tar.gz" \
path: | "https://git.y1lm0z.me/api/v1/repos/${{ gitea.repository }}/releases/latest/assets" || echo "Release bulunamadı, manuel oluşturun."
cmus
cmus-remote
# Eğer başka dosyalar da varsa buraya ekleyebilirsin