Skip to content

Commit

Permalink
Merge pull request #547 from diffblue/ebmc-packages-fixup5
Browse files Browse the repository at this point in the history
Fix ebmc release workflow
  • Loading branch information
tautschnig authored Jun 14, 2024
2 parents 613df4e + 9a016fc commit 2c5e9f5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ebmc-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
runs-on: ubuntu-20.04
outputs:
version: ${{ steps.split-version.outputs._1 }}
tag_name: ebmc-${{ steps.split-version.outputs._1 }}
steps:
- uses: jungwinter/split@v2
id: split-ref
Expand Down Expand Up @@ -79,7 +80,7 @@ jobs:
run: make -C regression/verilog test
- name: Print ccache stats
run: ccache -s
- name: Create packages
- name: Create .deb
id: create_packages
run: |
VERSION=$(echo ${{ github.ref }} | cut -d "/" -f 3 | cut -d "-" -f 2)
Expand All @@ -99,15 +100,15 @@ jobs:
sudo chown root:root -R ebmc-${VERSION}
dpkg -b ebmc-${VERSION}
deb_package_name="$(ls *.deb)"
echo "deb_package=./build/$deb_package_name" >> $GITHUB_OUTPUT
echo "deb_package_path=$PWD/$deb_package_name" >> $GITHUB_OUTPUT
echo "deb_package_name=ubuntu-22.04-$deb_package_name" >> $GITHUB_OUTPUT
- name: Upload binary packages
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.perform-draft-release.outputs.upload_url }}
asset_path: ${{ steps.create_packages.outputs.deb_package }}
asset_path: ${{ steps.create_packages.outputs.deb_package_path }}
asset_name: ${{ steps.create_packages.outputs.deb_package_name }}
asset_content_type: application/x-deb

Expand Down Expand Up @@ -154,6 +155,7 @@ jobs:
- name: Run the verilog tests
run: make -C regression/verilog test
- name: Create .rpm
id: create_packages
run: |
VERSION=$(echo ${{ github.ref }} | cut -d "/" -f 3 | cut -d "-" -f 2)
SRC=`pwd`
Expand Down Expand Up @@ -187,19 +189,18 @@ jobs:
%files
/usr/bin/ebmc
EOM
echo Building ebmc-${VERSION}-1.x86_64.rpm
(cd ~/rpmbuild/SPECS ; rpmbuild -v -bb ebmc.spec )
rpm_package_name=ebmc-${VERSION}-1.x86_64.rpm
echo "rpm_package=~/rpmbuild/SPECS/$rpm_package_name" >> $GITHUB_OUTPUT
echo "rpm_package_path=~/rpmbuild/SPECS/$rpm_package_name" >> $GITHUB_OUTPUT
echo "rpm_package_name=centos8-$rpm_package_name" >> $GITHUB_OUTPUT
- name: Upload binary packages
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.perform-draft-release.outputs.upload_url }}
asset_path: ${{ steps.create_packages.outputs.rpm_package }}
asset_path: ${{ steps.create_packages.outputs.rpm_package_path }}
asset_name: ${{ steps.create_packages.outputs.rpm_package_name }}
asset_content_type: application/x-rpm

Expand Down Expand Up @@ -227,6 +228,7 @@ jobs:
```sh
dpkg -i ubuntu-22.04-ebmc-${{ env.EBMC_VERSION }}-Linux.deb
${{ needs.ubuntu-22_04-package.outputs.deb_package_name }}
```
## CentOS
Expand Down

0 comments on commit 2c5e9f5

Please sign in to comment.