diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd623e7..5dd549e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/Dockerfile b/Dockerfile index 355ccd3..790b3de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/justfile b/justfile index e6c6285..af37078 100644 --- a/justfile +++ b/justfile @@ -1,5 +1,6 @@ i := '1000000000' tag := 'acheronfail/count' +mount := '/var/count' _default: just -l @@ -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) @@ -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