-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* package/PKGBUILD: add packaging file for arch * INSTALL: add installation instructions for packaging KEVM * Jenkinsfile: add Deploy stage for building/uploading packages * .gitignore: update ignored files * package/debian: packaging setup for ubuntu 18.04 * package/Dockerfile.{arch,ubuntu-bionic}: dockerfiles for building the Arch/Ubuntu packages * package/{debian,PKGBUILD}: set DESTDIR and INSTALL_PREFIX manually * Jenkinsfile: only run build/test steps on PRs * Jenkinsfile: add slack notification on deploy failure * .gitignore: update ignored dirs
- Loading branch information
Showing
10 changed files
with
368 additions
and
83 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,2 +1,6 @@ | ||
/.build/* | ||
/rustc-* | ||
/pkg | ||
/src | ||
/package/pkg | ||
/package/src |
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,67 @@ | ||
Installing Release Builds | ||
========================= | ||
|
||
These instructions explain how to download, install, and build the KEVM packages. | ||
Current supported systems are: | ||
|
||
- Arch Linux | ||
- Ubuntu Bionic (18.04) | ||
|
||
Downloading Packages | ||
-------------------- | ||
|
||
We release our packages on GitHub, visit the [Releases](https://github.com/kframework/evm-semantics/releases) page to see available versions. | ||
Releases are generated as often as possible from the `master` branch of the repository. | ||
|
||
Installing Packages | ||
------------------- | ||
|
||
### Ubuntu/Debian | ||
|
||
Install the package with (`X.Y.Z` is version number, `ID` is platform identifier): | ||
|
||
```sh | ||
sudo apt install ./kevm_X.Y.Z_amd64_ID.deb | ||
``` | ||
|
||
### Arch | ||
|
||
Install the package with (`X.Y.Z-V` is version number): | ||
|
||
```sh | ||
sudo pacman -U ./kevm-git-X.Y.Z-V-x86_64.pkg.tar.xz | ||
``` | ||
|
||
Building Packages | ||
----------------- | ||
|
||
Make sure to bump the version numbers in the following places: | ||
|
||
- `RELEASE_ID` in `Jenkinsfile`, | ||
- `pkgver` in `package/PKGBUILD`, and | ||
- version number in `package/debian/changelog`. | ||
|
||
If these numbers do not agree, then building the release will not work. | ||
|
||
### Ubuntu/Debian | ||
|
||
Build the package in by running: | ||
|
||
```sh | ||
cp -r package/debian ./ | ||
dpkg-buildpackage --no-sign | ||
``` | ||
|
||
This will throw an error for any build dependencies you're missing, install them with `sudo apt install ...`. | ||
The `kevm_X.Y.Z_amd64_ID.deb` package will be placed one directory up from the repository root. | ||
|
||
### Arch | ||
|
||
Build the package with: | ||
|
||
```sh | ||
cd package | ||
makepkg -s | ||
``` | ||
|
||
This will put `kevm-git-X.Y.Z-V-x86_64.pkg.tar.xz` in the current directory. |
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,13 @@ | ||
FROM archlinux/base | ||
|
||
RUN pacman -Syu --noconfirm \ | ||
&& pacman -S --noconfirm git hub sudo | ||
|
||
ADD https://github.com/kframework/k/releases/download/nightly-89361d7c8/kframework-5.0.0-1-x86_64.pkg.tar.xz kframework_5.0.0-1_x86_64.pkg.tar.xz | ||
RUN pacman --noconfirm -U ./kframework_5.0.0-1_x86_64.pkg.tar.xz | ||
|
||
ARG USER_ID=1000 | ||
ARG GROUP_ID=1000 | ||
RUN groupadd -g $GROUP_ID user \ | ||
&& useradd --create-home --uid $USER_ID --shell /bin/sh --gid $GROUP_ID user \ | ||
&& echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers |
Oops, something went wrong.