Skip to content

Commit

Permalink
split into separate steps, upload artifacts earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostofGoes committed Feb 8, 2024
1 parent 233f357 commit 1376385
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@ jobs:
cd src/pybennu
sudo make deb
cp ./dist/*.deb ../../pybennu.deb
- name: check deb files
run: |
echo $(whoami)
dpkg-deb --info ./bennu.deb
dpkg-deb --info ./pybennu.deb
sudo dpkg -i bennu.deb
sudo dpkg -i pybennu.deb
- name: archive deb artifacts
uses: actions/upload-artifact@v4
with:
Expand All @@ -86,6 +79,16 @@ jobs:
path: |
bennu.deb
pybennu.deb
- name: deb file metadata
run: |
dpkg-deb --info ./bennu.deb
dpkg-deb --info ./pybennu.deb
- name: check bennu deb installs
run: |
sudo dpkg -i bennu.deb
- name: check pybennu deb installs
run: |
sudo dpkg -i pybennu.deb
- name: release debs to apt repo
if: (github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true) || (github.event_name == 'push' && github.ref == 'refs/heads/main')
run: |
Expand Down

0 comments on commit 1376385

Please sign in to comment.