Feature/parallel ci 2 (#179)

* Revert "Revert "feat: parallel ci (#178)""

This reverts commit 167340f8d5.

* try release creation

* Revert "try release creation"

This reverts commit 34d4c37c89.
This commit is contained in:
Ilya Zlobintsev 2023-05-14 18:43:10 +03:00 committed by GitHub
parent 2d78b2375a
commit 267187ff06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,10 +2,14 @@ name: Build packages
on: on:
push: push:
branches: ['v2', 'master'] branches: ['master']
pull_request:
jobs: jobs:
build-packages: build-packages:
strategy:
matrix:
target-os: [debian-12, ubuntu-2204, fedora-37, fedora-38]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
@ -17,7 +21,7 @@ jobs:
sudo apt -y install /tmp/pkger.deb sudo apt -y install /tmp/pkger.deb
- name: Build packages - name: Build packages
run: pkger -c .pkger.yml build lact run: pkger -c .pkger.yml build lact -i ${{ matrix.target-os }}
- name: Copy release files - name: Copy release files
run: | run: |
@ -40,13 +44,33 @@ jobs:
done done
popd popd
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.target-os }}
path: release-artifacts/*
create-release:
needs: build-packages
runs-on: ubuntu-latest
if: (github.event_name == 'push' && github.ref == 'refs/heads/master')
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: downloaded-artifacts/
- name: Create release - name: Create release
uses: ncipollo/release-action@v1.12.0 uses: ncipollo/release-action@v1.12.0
with: with:
removeArtifacts: true removeArtifacts: true
allowUpdates: true allowUpdates: true
artifactErrorsFailBuild: true artifactErrorsFailBuild: true
artifacts: "release-artifacts/*" artifacts: "downloaded-artifacts/*/*"
body: ${{ github.event.head_commit.message }} body: ${{ github.event.head_commit.message }}
prerelease: true prerelease: true
name: Test release name: Test release