From fae1c3a4b9bd70680684650231602218c75b68ec Mon Sep 17 00:00:00 2001 From: acheronfail Date: Wed, 10 Jan 2024 19:01:05 +1030 Subject: [PATCH] --wip-- --- .github/workflows/ci.yml | 154 +++++++++++---------------------------- 1 file changed, 43 insertions(+), 111 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20c1727..fcba93c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: Do the thing in CI on: push: - branches: ["master"] + branches: ["master", "docker"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -10,126 +10,58 @@ on: jobs: run: runs-on: ubuntu-latest + container: + image: acheronfail/count + volumes: + /var/count:/data strategy: fail-fast: false matrix: build: - assembly - - bun - - c-gcc - - c-clang - - cpp-gcc - - cpp-clang - - cobol - - coffeescript - - crystal - - csharp - - deno - - erlang - - forth - - fortran - - go - - haskell - - java - - julia - - kotlin - - lua - - nim - - node - - pascal - - perl - - php - - prolog - - python3 - - ruby - - rust - - scala - - smalltalk + # - bun + # - c-gcc + # - c-clang + # - cpp-gcc + # - cpp-clang + # - cobol + # - coffeescript + # - crystal + # - csharp + # - deno + # - erlang + # - forth + # - fortran + # - go + # - haskell + # - java + # - julia + # - kotlin + # - lua + # - nim + # - node + # - pascal + # - perl + # - php + # - prolog + # - python3 + # - ruby + # - rust + # - scala + # - smalltalk # - tcl - - zig + # - zig steps: - name: Checkout uses: actions/checkout@v3 - - uses: actions/cache@v3 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - ~/.cargo/.crates.toml - ~/.cargo/.crates2.json - target/ - key: ${{ runner.os }}-cargo - - uses: actions/cache@v3 - with: - path: scripts/node_modules - key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }} - # install dependencies - - uses: extractions/setup-just@v1 - - uses: oven-sh/setup-bun@v1 - - uses: denoland/setup-deno@v1 - with: - deno-version: "~1" - - name: Install dependencies - run: | - sudo apt-get update - sudo apt-get install -y \ - build-essential \ - cargo \ - clang \ - coffeescript \ - curl \ - erlang \ - fp-compiler \ - gforth \ - gfortran \ - gnu-smalltalk \ - gnucobol3 \ - haskell-platform \ - jq \ - kotlin \ - lua5.4 \ - mono-devel \ - moreutils \ - nasm \ - nodejs \ - php \ - rustc \ - scala \ - swi-prolog \ - tar \ - tcl \ - wget \ - xz-utils - cargo install timers - cargo install hyperfine - cargo install ripgrep --features 'pcre2' - cargo install juliaup - - juliaup add release - - wget -qO choosenim.sh https://nim-lang.org/choosenim/init.sh - bash ./choosenim.sh -y - echo "$HOME/.nimble/bin" >> $GITHUB_PATH - export PATH="$HOME/.nimble/bin:$PATH" - - curl -fsSL https://crystal-lang.org/install.sh | sudo bash - - mkdir -p /opt/zig && cd $_ - wget --quiet -O zig.tar.xz $(curl --silent https://ziglang.org/download/index.json | jq -r '.[keys_unsorted[1]]["x86_64-linux"].tarball') - tar -xvf zig.tar.xz --strip-components=1 2>&1 >/dev/null - echo "/opt/zig" >> $GITHUB_PATH - export PATH="/opt/zig:$PATH" - cd - - + - run: pwd # do the thing - - run: just test ${{ matrix.build }} - - run: just measure ${{ matrix.build }} - # report - - uses: actions/upload-artifact@v3 - with: - path: "${{ matrix.build }}.json" + # - run: just test ${{ matrix.build }} + # - run: just measure ${{ matrix.build }} + # # report + # - uses: actions/upload-artifact@v3 + # with: + # path: "${{ matrix.build }}.json" report: needs: ["run"]