Skip to content

Fix ebmc release workflow #547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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