Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed Jan 10, 2024
1 parent fae1f68 commit fae1628
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,12 @@ jobs:
# - tcl
# - zig
steps:
- name: Checkout
uses: actions/checkout@v3
- run: git clone ${{ github.repositoryUrl }}
- run: pwd
- run: ls -la
- run: cd ${{ github.event.repository.name }}
- run: pwd
- run: ls -la
# do the thing
# - run: just test ${{ matrix.build }}
# - run: just measure ${{ matrix.build }}
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ RUN cd && curl -fSL "$(curl -fSL https://ziglang.org/download/index.json | jq -r
&& rm zig.tar.xz
ENV PATH="/home/runner/.zig:$PATH"

WORKDIR /data
COPY --chown=runner:runner . .
WORKDIR /var/count
COPY --chown=runner:runner justfile justfile
COPY --chown=runner:runner scripts scripts
RUN cd scripts && npm install
7 changes: 4 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
i := '1000000000'
tag := 'acheronfail/count'
mount := '/var/count'

_default:
just -l
Expand All @@ -11,7 +12,7 @@ setup: (_check "npm")
cd scripts && npm install

docker-sh: docker-build
docker run --rm -ti --platform 'linux/amd64' -v "$PWD/results:/data/results" {{tag}}
docker run --rm -ti --platform 'linux/amd64' -v "$PWD/results:{{mount}}/results" {{tag}}

# NOTE: there are issues if you try to build this on an arm macbook via rosetta emulation
# - mono fails to install (https://github.com/mono/mono/issues/21423)
Expand All @@ -26,10 +27,10 @@ docker-push: docker-build
docker push {{tag}}

docker-measure what:
docker run --rm -ti --platform 'linux/amd64' -v "$PWD/results:/data/results" {{tag}} just measure {{what}}
docker run --rm -ti --platform 'linux/amd64' -v "$PWD/results:{{mount}}/results" {{tag}} just measure {{what}}

docker-measure-all:
docker run --rm -ti --platform 'linux/amd64' -v "$PWD/results:/data/results" {{tag}} just measure-all
docker run --rm -ti --platform 'linux/amd64' -v "$PWD/results:{{mount}}/results" {{tag}} just measure-all

measure-all:
#!/usr/bin/env bash
Expand Down

0 comments on commit fae1628

Please sign in to comment.