Skip to content

exercises/practice/anagram: add an append with instructions about the… #873

exercises/practice/anagram: add an append with instructions about the…

exercises/practice/anagram: add an append with instructions about the… #873

Workflow file for this run

name: uuids
on: [push, pull_request]
jobs:
check_uuids:
runs-on: ubuntu-22.04
env:
NIM_VERSION: '2.0.0'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Get the versions of the installed GCC and OpenSSL
run: |
echo "GCC_VERSION=$(gcc --version | head -n1 | cut -d' ' -f3)" >> "${GITHUB_ENV}"
echo "OPENSSL_VERSION=$(openssl version | cut -d' ' -f2 )" >> "${GITHUB_ENV}"
- name: Cache binary
id: cache-uuids
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
with:
path: _test/check_uuids
key: check_uuids-${{ hashFiles('_test/check_uuids.nim') }}-${{ runner.os }}-nim${{ env.NIM_VERSION }}-gcc${{ env.GCC_VERSION }}-openssl${{ env.OPENSSL_VERSION }}
- name: Install Nim
if: steps.cache-uuids.outputs.cache-hit != 'true'
uses: iffy/install-nim@28af9cddcdc5e5da655da4ff631b86bd87585a5b
with:
version: "binary:${{ env.NIM_VERSION }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests for `check_uuids.nim`
if: steps.cache-uuids.outputs.cache-hit != 'true'
run: nim c --styleCheck:error -d:test -r ./_test/check_uuids.nim
- name: Compile `check_uuids.nim`
if: steps.cache-uuids.outputs.cache-hit != 'true'
run: nim c --styleCheck:error -d:ssl -d:release --passC:-flto --passL:-s ./_test/check_uuids.nim
- name: Run `check_uuids`
run: ./_test/check_uuids