Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
207 commits
Select commit Hold shift + click to select a range
c27d2ba
zig: init zig build system
ripperi Aug 5, 2024
fc4ab4f
zig: add dependency natpmp
ripperi Aug 5, 2024
fd4e2fc
zig: add dependency softfloat
ripperi Aug 5, 2024
ce909df
zig: add dependency aes_siv
ripperi Aug 5, 2024
c06517d
zig: build & link dependency avahi
ripperi Aug 6, 2024
e641109
zig: add dependency curl
ripperi Aug 6, 2024
379a2b0
zig: disable unneeded curl features
ripperi Aug 7, 2024
879cb21
zig: add generated `aarch64` sources for GMP
ripperi Aug 10, 2024
7beeb64
zig: add generated `x86-64` sources for GMP
ripperi Aug 10, 2024
a42222b
zig: add readme with snippes for generating the GMP sources
ripperi Aug 10, 2024
6470139
zig: add `build.zig.zon` for GMP
ripperi Aug 10, 2024
d29f44e
zig: add GMP build
ripperi Aug 10, 2024
3e2dbb7
zig: add the zigged GMP dependency to the test executable
ripperi Aug 10, 2024
f4b5f89
zig: add h2o `build.zig.zon`
ripperi Aug 10, 2024
f5ad26c
zig: init h2o build
ripperi Aug 10, 2024
e09b440
zig: add copies of h2o src files in need of patching
ripperi Aug 10, 2024
c07ea46
zig: apply h2o patches
ripperi Aug 10, 2024
6047dd5
zig: link openssl to h2o
ripperi Aug 10, 2024
a72a819
zig: build & link libuv to h2o
ripperi Aug 10, 2024
2e9f0ef
zig: add h2o dependency cloexec
ripperi Aug 20, 2024
fc30625
zig: add h2o dependency golombset
ripperi Aug 20, 2024
5d1b8d8
zig: add h2o dependency klib
ripperi Aug 20, 2024
c0a96f7
zig: add h2o dependency libgkc
ripperi Aug 20, 2024
adc38c7
zig: add h2o dependency libyrmcds
ripperi Aug 20, 2024
b97a2cf
zig: add h2o dependency picohttpparser
ripperi Aug 20, 2024
ce74ee5
zig: add h2o dependency picotls
ripperi Aug 20, 2024
6b32b46
zig: add h2o dependency ssl_conservatory
ripperi Aug 20, 2024
3f65e8e
zig: add h2o dependency yoml
ripperi Aug 20, 2024
dfd1ef2
zig: cleanup h2o build.zig
ripperi Aug 20, 2024
f9bc234
zig: copy `h2o/deps/klib/kopen.c` under h2o patches
ripperi Aug 22, 2024
2ff8266
zig: patch `h2o/deps/klib/kopen.c` with `sys/wait.h` include
ripperi Aug 22, 2024
c49aaf3
zig: build & link curl and zlib to h2o
ripperi Aug 22, 2024
3682032
zig: add missing flags for h2o and comment out sys lib links
ripperi Aug 22, 2024
2eb9d02
zig: build libuv separately from h2o
ripperi Aug 23, 2024
53bc5c3
zig: add h2o, libuv, and openssl to the zig test build
ripperi Aug 23, 2024
e6e25a7
zig: add lmdb build
ripperi Aug 23, 2024
0b63fe2
zig: add lmdb to the zig test build
ripperi Aug 23, 2024
c06f7f5
zig: add murmur3 build
ripperi Aug 23, 2024
728a29e
zig: murmur3 to the zig test build
ripperi Aug 23, 2024
8969aa6
zig: add dependency pdjson
ripperi Aug 23, 2024
d1e7537
zig: add dependency sigsegv
ripperi Aug 23, 2024
1a4a06c
zig: add dependency whereami
ripperi Aug 23, 2024
5c6387e
zig: add dependency urcrypt
ripperi Aug 26, 2024
45b5568
zig: rename versioned noun api sources
ripperi Aug 29, 2024
ab3db88
noun: fix includes
ripperi Aug 29, 2024
8dec63a
zig: add missing prototypes
ripperi Aug 29, 2024
cdcea33
zig: remove zero size arrays
ripperi Aug 29, 2024
a2e7d1f
noun: fix missing prototypes
ripperi Aug 29, 2024
64ca1f9
noun: remove unused variables and functions
ripperi Aug 29, 2024
0200f58
noun: fix missing prototypes
ripperi Aug 29, 2024
6d5855f
allocate: remove unused variable
ripperi Aug 29, 2024
097c78c
noun: do not return void expressions
ripperi Aug 29, 2024
544427d
trace: remove variables
ripperi Aug 29, 2024
af418f4
noun: remove extra semicolon
ripperi Aug 29, 2024
770ef75
noun: fix incompatible pointer types
ripperi Aug 29, 2024
2747103
noun: move versioned sources to noun base level
ripperi Aug 30, 2024
2f9e6c8
ivory: add c sources for ivory and bash script for generating them
ripperi Aug 30, 2024
ec4a707
vere: do not return void expressions
ripperi Aug 30, 2024
57ce42a
term: remove redundant for-loop value assignment
ripperi Aug 30, 2024
139d177
ca_bundle: add ca_bundle sources and bash script for generating them
ripperi Aug 30, 2024
e39d86b
main: remove unused variable
ripperi Aug 30, 2024
47c7831
vere: fix includes
ripperi Aug 30, 2024
04971da
zig: add zlib dependency
ripperi Aug 30, 2024
242f279
zig: init urbit binary build
ripperi Aug 30, 2024
7a870b5
zig: build openssl 1.1.1w
ripperi Sep 4, 2024
23b2e14
zig: openssl, move generated hdrs under gen
ripperi Sep 4, 2024
134aaf4
zig: include asm in openssl build
ripperi Sep 4, 2024
172f648
zig: add engine and some macros to openssl build
ripperi Sep 4, 2024
e4d0ad3
zig: gmp, add missing srcs
ripperi Sep 4, 2024
05f66bc
zig: urcrypt, add missing srcs to secp256k1
ripperi Sep 5, 2024
63c0f55
zig: fix secp256k1 missing symbol issues
ripperi Sep 9, 2024
7879f6f
zig: finish urcrypt build
ripperi Sep 9, 2024
f4cb8f3
zig: fix libsoftfloat build
ripperi Sep 9, 2024
f3f15fe
zig: build urbit
ripperi Sep 9, 2024
4650219
zig: `-fno-sanitize=all` for dependencies
ripperi Sep 10, 2024
332277c
build: fix openssl build, no assembly for now
pkova Sep 10, 2024
fc98228
manage: revert gmp free to u3a_free
pkova Sep 10, 2024
1eb6d75
build: set stack_size to default 0, we use setrlimit at startup
pkova Sep 11, 2024
a464198
build: fix broken json_en jet
pkova Sep 11, 2024
d458c49
json: fix more broken json_en stuff
pkova Sep 12, 2024
2248a02
zig: remove -O3 flags and add missing -O2 flags
ripperi Sep 12, 2024
b2aee0e
zig: add `liblmdb/mdb.c` for patching
ripperi Sep 12, 2024
337221e
zig: patch `liblmdb/mdb.c`
ripperi Sep 12, 2024
c476700
zig: sigsegv, add `HAVE_CONFIG_H` macro
ripperi Sep 12, 2024
381ad1f
pier: fix early return bug
pkova Sep 12, 2024
d9283fb
manage: check for error when installing signal handler
pkova Sep 12, 2024
4bfa33b
zig: add engine to openssl build
ripperi Sep 11, 2024
d8c87c4
vere: add remaining missing returns
ripperi Sep 12, 2024
64c8237
noun: add remaining missing returns
ripperi Sep 12, 2024
e6ecf31
zig: fix softfloat build on mac
ripperi Sep 12, 2024
beeff26
zig: move aes_siv build under urcrypt
ripperi Sep 12, 2024
3289a01
zig: refactor how build flags are allocated
ripperi Sep 13, 2024
abe2a9b
zig: whitelist supported targets
ripperi Sep 13, 2024
0d6de45
zig: add options for version and pace and set them programmatically
ripperi Sep 13, 2024
6efdb1a
zig: add option for specifying additional cflags from cli
ripperi Sep 13, 2024
9eca82b
zig: use macos sdk when cross-compiling for macos
ripperi Sep 16, 2024
e4c470f
zig: cleanup openssl build and remove asm build c sources
ripperi Sep 16, 2024
2f6f3e7
zig: resolve correct openssl `-arch` flag value from target
ripperi Sep 16, 2024
3628c59
zig: cleanup gmp build
ripperi Sep 16, 2024
d836da8
zig: add remaining gen sources for gmp
ripperi Sep 16, 2024
2982c49
zig: fix openssl build on x86-64_linux_musl
ripperi Sep 16, 2024
b83400f
zig: remove build for redundant h2o dependency `ssl_conservatory`
ripperi Sep 17, 2024
7217175
zig: remove gen c sources from gmp build
ripperi Sep 17, 2024
47a3f99
zig: remove `main.c` from scrypt build c sources
ripperi Sep 17, 2024
fbad1a7
zig: fix openssl `-arch` value
ripperi Sep 17, 2024
08c35a2
zig: compile libuv `unix/proctitle.c` on all unix targets
ripperi Sep 17, 2024
813bb0c
zig: add missing avahi c sources to fix build on linux
ripperi Sep 17, 2024
de712a1
zig: build for all targets with `-Drelease`
ripperi Sep 17, 2024
2683a68
zig: force musl abi on native linux builds
ripperi Sep 17, 2024
3648263
zig: disable sigsegv stackvma on linux
ripperi Sep 17, 2024
475754b
fix: force musl abi ONLY on linux (native)
ripperi Sep 17, 2024
33a3b6a
zig: only fetch macos_sdk if dependency is actually used
ripperi Sep 17, 2024
97aadd6
zig: build & link dependency libbacktrace
ripperi Sep 17, 2024
a17dc23
manage: remove unused variable
ripperi Sep 17, 2024
f6b2ad2
zig: build & link libunwind on linux
ripperi Sep 18, 2024
d856900
manage: fix incompatible pointer types
ripperi Sep 18, 2024
de4802b
zig: move openssl gen sources under appropriate arch prefix
ripperi Sep 19, 2024
61d5faf
zig: add openssl gen sources for macos-x86_64
ripperi Sep 19, 2024
3dc7885
zig: add openssl gen sources for linux-x86_64
ripperi Sep 19, 2024
bbd91f1
zig: add openssl gen sources for linux-aarch64
ripperi Sep 19, 2024
fef4a82
zig: build openssl with asm
ripperi Sep 19, 2024
2dec160
zig: add test steps
ripperi Sep 19, 2024
7e86e77
zig: cleanup tests
ripperi Sep 19, 2024
5956b14
docs: update `INSTALL.md` for new build system
ripperi Sep 20, 2024
6d3f9b2
bazel: delete bazel build system
ripperi Sep 20, 2024
807a3f4
zig: remove os version range from artifact install path
ripperi Sep 24, 2024
da4f058
zig: fix duplicate steps when building with `-Drelease`
ripperi Sep 24, 2024
6b31ce1
zig: parse git rev from `.git/logs/HEAD`
ripperi Sep 24, 2024
46bd28c
zig: add `-Dall` flag for building for all targets
ripperi Sep 26, 2024
60251b1
zig: add aor jet to noun sources
ripperi Sep 26, 2024
c7d06b8
build: remove excessive include paths from libnoun & libvere
ripperi Sep 26, 2024
13c4e87
zig: keep target cpu and os native in (native) linux builds
ripperi Sep 26, 2024
43eb1e6
zig: add test steps even if abi is not native
ripperi Sep 26, 2024
1dfae48
zig: fix ames test build on linux
ripperi Sep 26, 2024
edb96f0
ci: update github actions workflows for zig build system
ripperi Sep 24, 2024
2406bd1
ci: update gcp steps for zig build
ripperi Sep 27, 2024
54c763f
ci: add fake ship tests
ripperi Sep 27, 2024
fd409cf
ci: print build summary
ripperi Sep 27, 2024
ca74d0f
zig: add options for enabling debug macros
ripperi Sep 27, 2024
c6f0971
zig: add option for specifying the binary name
ripperi Sep 27, 2024
4e2ec64
trace: fix use of undeclared variable errors in debug mode
ripperi Sep 27, 2024
084e80a
allocate: do not return void expression
ripperi Sep 27, 2024
271a61d
allocate: fix incompatible pointer type
ripperi Sep 27, 2024
e9f91d1
ci: split fake ship tests into steps and run them on a test build
ripperi Sep 27, 2024
8d4b408
Fixed a really dumb pointer bug that wouldn't let you disconnect from…
mopfel-winrux Sep 27, 2024
f5799a9
Lick Pointer bug (#722)
pkova Sep 27, 2024
1bdecd4
ci: upgrade fake ship test solid.pill and arvo
ripperi Sep 27, 2024
9a5b19f
zig: set urcrypt optimization level to 2
ripperi Sep 27, 2024
303d68f
ci: setup zig with `mlugg/setup-zig`
ripperi Sep 27, 2024
79c119c
build: add ARGON2_NO_THREADS macro to libargon
pkova Sep 27, 2024
2b500f6
zig: cleanup build options
ripperi Sep 27, 2024
e7c9277
zig: always include test steps when building for single target
ripperi Sep 27, 2024
d479180
docs: update `INSTALL.md`
ripperi Sep 27, 2024
4440c9d
ci: move fake ship boot & test step bash scripts to separate files
ripperi Oct 1, 2024
9cd522a
ci: keep old target format for uploaded binaries
ripperi Oct 1, 2024
e17fe1c
ci: update docker workflow for zig build
ripperi Oct 2, 2024
36df172
test: fix fake ship tests on macos
ripperi Oct 2, 2024
1ab0e3d
ci: build for release when pace equals `live`
ripperi Oct 2, 2024
9739a96
noun: fix some left shiting undefined behavior
pkova Sep 13, 2024
b774346
lmbd: fix some unaligned access undefined behavior
pkova Sep 13, 2024
6a950ac
misc: more undefined behavior left shifting fixes
pkova Sep 26, 2024
9bb2189
serial: remove unnecessary assertion
pkova Sep 26, 2024
6cafe5f
noun: align u3n_prog to 8 byte boundaries
pkova Sep 26, 2024
83f570a
Revert "noun: move versioned sources to noun base level"
ripperi Oct 2, 2024
13b38fc
Revert "zig: rename versioned noun api sources"
ripperi Oct 2, 2024
174f35b
events: do not read garbage memory on empty control files
pkova Oct 3, 2024
36827b3
Revert "noun: fix includes"
ripperi Oct 3, 2024
0a360b5
Revert "vere: fix includes"
ripperi Oct 3, 2024
51a4a05
zig: reflect previous noun api reverts in pkg_noun c sources
ripperi Oct 3, 2024
85862c5
noun: reflect previous noun api reverts in includes
ripperi Oct 3, 2024
a9c1484
noun: fix pkg includes and platform specific header includes
ripperi Oct 3, 2024
bb8bdd8
vere: fix pkg includes
ripperi Oct 3, 2024
ec54a66
events: do not read garbage memory on empty control files (#724)
pkova Oct 4, 2024
4144e07
Merge branch 'ripa/zig' of https://github.com/urbit/vere into pkova/u…
pkova Oct 8, 2024
dc8d539
zig: cleanup avahi build
ripperi Oct 8, 2024
7d603e0
misc: fix tons of undefined behavior vol 2 (#723)
pkova Oct 8, 2024
e101ff4
zig build system (#719)
pkova Oct 8, 2024
5b3d145
ci: fix typo in `docker-shared.yml`
ripperi Oct 8, 2024
277a48b
ci: fix typo in `docker-shared.yml` (#725)
pkova Oct 8, 2024
fa17cbf
ci: split dockerfile copy command
ripperi Oct 8, 2024
68cc2a4
ci: split dockerfile copy command (#726)
pkova Oct 8, 2024
6b93987
ci: fix gcloud upload
ripperi Oct 8, 2024
fadbd1a
ci: fix gcloud upload (#727)
pkova Oct 8, 2024
8627550
ci: change working directory of docker build steps
ripperi Oct 8, 2024
c3402e5
ci: change working directory of docker build steps (#728)
pkova Oct 8, 2024
2eeb659
ci: change context of docker build steps
ripperi Oct 8, 2024
f92fc1d
ci: change context of docker build steps (#729)
pkova Oct 8, 2024
60b3254
ci: fix latest deployed version string
ripperi Oct 8, 2024
98bee2a
ci: fix latest deployed version string (#730)
pkova Oct 9, 2024
526287c
build: change mirror for libnatpmp, hopefully less flaky
pkova Oct 9, 2024
43c95d6
ext: fix generated gmp x86_64 linux assemby sources
ripperi Oct 10, 2024
ec02731
ext: add generated gmp config header for each target
ripperi Oct 10, 2024
6453daf
ci: update path filters
ripperi Oct 10, 2024
218e8a1
Fix generated GMP assembly sources on x86_64 linux (#733)
pkova Oct 10, 2024
a5f8186
docs: add configure opts to gmp readme
ripperi Oct 11, 2024
fedec58
gmp: fix readme typo
pkova Oct 11, 2024
f59ab4e
docs: add configure opts to gmp readme (#734)
pkova Oct 11, 2024
0a26ad0
build: upgrade gmp to 6.3.0
pkova Oct 17, 2024
d0e6665
build: upgrade gmp to 6.3.0
pkova Oct 17, 2024
7fab25d
Merge branch 'pkova/gmp-6.3' of https://github.com/urbit/vere into pk…
pkova Oct 17, 2024
c75bd00
build: upgrade gmp to 6.3.0 on x86_64-macos
nathanlever Oct 17, 2024
1d0905b
build: remember to copy sieve_table.h in gmp build readme
pkova Oct 17, 2024
dd362b3
ci: fix paths to make ci run
pkova Oct 17, 2024
fb807c1
build: forgot to commit some gmp files
pkova Oct 17, 2024
a537c85
build: upgrade gmp to 6.3.0 (#735)
pkova Oct 17, 2024
79241e1
Merge branch 'next/kelvin/410' into develop
pkova Oct 17, 2024
f1d8477
build: merge develop to next/kelvin/410, convert lagoon to zig build
pkova Oct 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
51 changes: 0 additions & 51 deletions .bazelrc

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:
branches:
- develop
paths:
- '*.bazel'
- '.bazelrc'
- '.github/workflows/**.yml'
- 'PACE'
- 'VERSION'
- 'bazel/**'
- 'build.zig'
- 'build.zig.zon'
- 'ext/**'
- '!ext/**.md'
- 'pkg/**'
- '.github/workflows/**.yml'
- '*.sh'

jobs:
urbit:
Expand Down
58 changes: 27 additions & 31 deletions .github/workflows/docker-shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,36 +16,26 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: mlugg/setup-zig@v1
with:
version: 0.13.0

#
# BUILD OR READ FROM CACHE
# BUILD
#

- name: chown /usr/local
- name: Build binary
id: build
run: |
# See https://github.com/actions/cache/issues/845.
sudo chown $(whoami) /usr/local && (chown -R $USER /usr/local/*-musl || true)
zig build \
-Dtarget=x86_64-linux-musl \
-Doptimize=ReleaseFast \
-Dpace=${{inputs.pace}} \
--summary all

- name: Set up build cache
id: build-cache
uses: actions/cache@v3
with:
key: linux-x86_64-cache
path: |
# # Cache bazel path on Linux.
~/.cache/bazel/_bazel_$(whoami)
# Cache musl libc toolchains.
/usr/local/*-musl

- name: Install toolchains
if: steps.build-cache.outputs.cache-hit != 'true'
run: |
bazel run //bazel/toolchain:x86_64-linux-musl-gcc
cp zig-out/x86_64-linux-musl/urbit docker/.

- name: Install dependencies
run: sudo apt-get install -y autoconf-archive

- name: Set pace
run: echo "${{ inputs.pace }}" > ./PACE
echo version=v$(sed -nr 's/#define URBIT_VERSION "(.*)"/\1/p' zig-out/include/version.h) >> $GITHUB_OUTPUT

#
# UPLOAD TO DOCKER
Expand All @@ -66,12 +56,18 @@ jobs:
short_description: 'Urbit: a clean-slate OS and network for the 21st century'
readme_file: 'docker/README.md'

- name: Build and push version-tagged Docker image
run: bazel run //docker:push_version_x86_64

- name: Build and push pace-tagged Docker image
run: bazel run //docker:push_pace_x86_64
- name: Build and push
if: ${{ inputs.pace != 'live' }}
uses: docker/build-push-action@v6
with:
push: true
context: docker
tags: tloncorp/vere:${{ steps.build.outputs.version }},tloncorp/vere:${{ inputs.pace }}

- name: Build and push latest-tagged Docker image
- name: Build and push live
if: ${{ inputs.pace == 'live' }}
run: bazel run //docker:push_latest_x86_64
uses: docker/build-push-action@v6
with:
push: true
context: docker
tags: tloncorp/vere:latest
11 changes: 6 additions & 5 deletions .github/workflows/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ name: Feature pull request
on:
pull_request:
paths:
- '.bazelrc'
- '.github/workflows/*.yml'
- 'BUILD.bazel'
- 'WORKSPACE.bazel'
- 'bazel/**'
- 'build.zig'
- 'build.zig.zon'
- 'ext/**'
- '!ext/**.md'
- 'pkg/**'
- '.github/workflows/**.yml'
- '*.sh'

jobs:
urbit:
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ on:
branches:
- master
paths:
- '*.bazel'
- '.bazelrc'
- '.github/workflows/**.yml'
- 'PACE'
- 'VERSION'
- 'bazel/**'
- 'build.zig'
- 'build.zig.zon'
- 'ext/**'
- '!ext/**.md'
- 'pkg/**'

- '.github/workflows/**.yml'
- '*.sh'

jobs:
urbit:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:
branches:
- 'next/kelvin/*'
paths:
- '*.bazel'
- '.bazelrc'
- '.github/workflows/**.yml'
- 'PACE'
- 'VERSION'
- 'bazel/**'
- 'build.zig'
- 'build.zig.zon'
- 'ext/**'
- '!ext/**.md'
- 'pkg/**'
- '.github/workflows/**.yml'
- '*.sh'

jobs:
urbit:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:
branches:
- release
paths:
- '*.bazel'
- '.bazelrc'
- '.github/workflows/**.yml'
- 'PACE'
- 'VERSION'
- 'bazel/**'
- 'build.zig'
- 'build.zig.zon'
- 'ext/**'
- '!ext/**.md'
- 'pkg/**'
- '.github/workflows/**.yml'
- '*.sh'

jobs:
urbit:
Expand Down
Loading