Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,23 @@ jobs:
shell: bash
steps:
- uses: actions/checkout@v6
- name: install mach
# until a 7.x release exists, std is tested with the compiler built from
# mach's dev branch, since the released seed cannot read its manifest keys
- name: build mach from its dev branch
run: |
export MACH_INSTALL_DIR="$RUNNER_TEMP/mach"
export MACH_INSTALL_DIR="$RUNNER_TEMP/seed"
url="https://raw.githubusercontent.com/briar-systems/mach/v$MACH_VERSION/dist"
exe=
if [ "$RUNNER_OS" = Windows ]; then
pwsh -NoProfile -Command "irm $url/install.ps1 | iex"
exe=.exe
else
curl -fsSL "$url/install.sh" | sh
fi
echo "$MACH_INSTALL_DIR" >> "$GITHUB_PATH"
git clone --quiet --depth 1 --branch dev https://github.com/briar-systems/mach "$RUNNER_TEMP/mach-src"
mkdir -p "$RUNNER_TEMP/mach"
(cd "$RUNNER_TEMP/mach-src" && bash .github/scripts/seed-build.sh "$MACH_INSTALL_DIR/mach$exe" "$RUNNER_TEMP/mach/mach$exe")
echo "$RUNNER_TEMP/mach" >> "$GITHUB_PATH"
- run: mach dep pull .
- if: strategy.job-index == 0
run: mach fmt --check .
Expand Down
2 changes: 1 addition & 1 deletion dep/std
Submodule std updated 112 files
17 changes: 7 additions & 10 deletions mach.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[project]
id = "math"
version = "0.1.0"
mach = "^6.10"
mach = "^6"
src = "src"
out = "out/{target.name}/{profile.name}"
work = "out/{target.name}/{profile.name}"

[target.linux-x86_64]
isa = "x86_64"
Expand Down Expand Up @@ -34,8 +34,9 @@ abi = "aapcs64"
[artifact.math]
kind = "static"
default = true
export = true
entry = "lib/math.mach"
out = "lib/math"
out = "{project.work}/lib/math"
targets = ["*"]
link = ["kernel32"]
need = []
Expand All @@ -50,19 +51,15 @@ export = false

[profile.debug]
default = true
opt = 0
optimize = false
debug = true
simd = "scalarize"
vectorize = false
float_reassoc = false

[profile.release]
opt = 2
optimize = true
debug = false
simd = "scalarize"
vectorize = true
float_reassoc = false

[dep.std]
git = "https://github.com/briar-systems/mach-std"
version = "^9.5"
ref = "branch/dev"
Loading