diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d1084f1..0e3f815 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,15 +3,13 @@ name: Make Packages on: push: branches: [ "master" ] - tags: [ "*" ] - pull_request: - branches: [ "master" ] + tags: [ "master" ] jobs: - build-monocoque: + build-monocoque-debs: strategy: matrix: - os: [ubuntu-latest, debian-latest] + os: [ubuntu-latest, debian-latest, debian-stable] runs-on: ${{ matrix.os }} @@ -19,9 +17,7 @@ jobs: contents: write steps: - - uses: kenchan0130/actions-system-info@master - id: system-info - - uses: actions/checkout@v4 + - uses: actions/checkout - name: Checkout submodules run: git submodule update --init --recursive - name: Update apt @@ -60,3 +56,26 @@ jobs: uses: softprops/action-gh-release@v1 with: files: monocoque-${{ matrix.os }}.deb + + + build-monocoque-rpms: + strategy: + matrix: + os: [fedora-43] + runs-on: ${{ matrix.os }} + permissions: + contents: write + steps: + - uses: actions/checkout + + - name: get spec file + run: curl -o ~/fedora.spec https://raw.githubusercontent.com/Spacefreak18/monocoque/refs/heads/master/tools/distro/fedora/rpm/fedora.spec + - name: run spec file + run: rpmbuild -ba ~/fedora.spec + - name: rename file + run: cp ~/rpmbuild/RPMS/x86_64/monocoque-0.0.5-1.x86_64.rpm ~/monocoque-${{ matrix.os }}.deb + - name: Release the Package + uses: softprops/action-gh-release@v1 + with: + files: monocoque-${{ matrix.os }}.rpm +