-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide AppImages for Linux (amd64) (#29)
+ Add capability to build an AppImage based on the Docker file, which can be download on any Linux distribution with a glibc greater than or equal to CentOS 7. + Add a smoke-test script to the Docker image and the AppImage (to ensure everything is okay) + Added Python/Pyverilog version checkers ~ Greatly reduced Docker image size by using a multi-layer image ~ Changed CLI slightly so output files have full names and not prefices - Removed Jinja2 from dependencies
- Loading branch information
Showing
24 changed files
with
379 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
/.build | ||
/Netlists | ||
/Dockerfile | ||
/Dockerfile | ||
/appimage | ||
/.git | ||
/.github | ||
/.dockerignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
Tech/* linguist-detectable=false | ||
*.v linguist-detectable=false | ||
*.sv linguist-detectable=false | ||
*.sv linguist-detectable=false | ||
.github/* linguist-detectable=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
name: AppImage | ||
|
||
jobs: | ||
build_appimage: | ||
name: Build AppImage | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Get the version | ||
id: get_version | ||
run: | | ||
export VERSION_NUM=$(ruby -e "print '$GITHUB_REF'.split('/')[2]") | ||
echo ::set-output name=value::${VERSION_NUM} | ||
- name: Build | ||
run: | | ||
cd appimage | ||
export FAULT_IMAGE_NAME=ghcr.io/aucohl/fault:${{ steps.get_version.outputs.value }} | ||
make | ||
- name: Test AppImage | ||
run: | | ||
./appimage/Fault-x86_64.AppImage smoke-test | ||
- name: Copy AppImage | ||
run: | | ||
cp ./appimage/Fault-x86_64.AppImage /tmp/Fault-${{ steps.get_version.outputs.value }}-x86_64.AppImage | ||
- name: Upload Release Asset | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: /tmp/Fault-${{ steps.get_version.outputs.value }}-x86_64.AppImage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
|
||
jobs: | ||
push_to_pypi: | ||
name: Build (and publish, if applicable) | ||
name: Build/Publish Docker | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Check out Git repository | ||
|
@@ -23,20 +23,14 @@ jobs: | |
run: echo "NEW_TAG=NO_NEW_TAG" >> $GITHUB_ENV | ||
- name: Build Image | ||
run: | | ||
docker build -t aucohl/fault:latest . | ||
docker build --target runner -t aucohl/fault:latest . | ||
- name: Run Smoke Test | ||
run: | | ||
docker run --rm -w /fault aucohl/fault:latest swift test | ||
docker run --rm -w /test aucohl/fault:latest python3 /test/smoke_test.py | ||
- name: Check for new version | ||
if: ${{ env.BRANCH_NAME == 'main' }} | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/ && python3 .github/scripts/generate_tag.py | ||
- name: Tag Commit | ||
if: ${{ env.NEW_TAG != 'NO_NEW_TAG' }} | ||
uses: tvdias/[email protected] | ||
with: | ||
tag: "${{ env.NEW_TAG }}" | ||
repo-token: "${{ secrets.MY_TOKEN }}" | ||
python3 .github/scripts/generate_tag.py | ||
- name: Log in to the Container registry | ||
if: ${{ env.NEW_TAG != 'NO_NEW_TAG' }} | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
|
@@ -51,3 +45,10 @@ jobs: | |
docker image tag aucohl/fault:latest ghcr.io/aucohl/fault:$NEW_TAG | ||
docker push ghcr.io/aucohl/fault:$NEW_TAG | ||
docker push ghcr.io/aucohl/fault:latest | ||
# Last, because this triggers the AppImage CI | ||
- name: Tag Commit | ||
if: ${{ env.NEW_TAG != 'NO_NEW_TAG' }} | ||
uses: tvdias/[email protected] | ||
with: | ||
tag: "${{ env.NEW_TAG }}" | ||
repo-token: "${{ secrets.MY_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,5 @@ Netlists | |
*.bench | ||
*.test | ||
*.log | ||
*.vvp | ||
*.vvp | ||
parsetab.py |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.