From 4d1b21b3b7f11103798b2ebe5aa69f6cd758a041 Mon Sep 17 00:00:00 2001 From: Asherah Connor Date: Sun, 16 Jun 2024 12:54:08 +0300 Subject: [PATCH] setup-action: add. --- setup-action/actions.yml | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 setup-action/actions.yml diff --git a/setup-action/actions.yml b/setup-action/actions.yml new file mode 100644 index 0000000..283c6ae --- /dev/null +++ b/setup-action/actions.yml @@ -0,0 +1,55 @@ +name: Setup Niar + +inputs: + install-zig: + description: Install Zig with specified version. + +runs: + using: composite + steps: + - name: Checkout Niar + uses: actions/checkout@v4 + with: + repository: kivikakk/niar + path: setup-niar-out/niar + + - name: Install Python 3.12 + uses: actions/setup-python@v5 + with: + python-version: '3.12' + cache: pip + + - name: Install niar + run: cd setup-niar-out/niar && pip install -e . + shell: bash + + - name: Checkout amaranth-stdio + uses: actions/checkout@v4 + with: + repository: amaranth-lang/amaranth-stdio + path: setup-niar-out/amaranth-stdio + + - name: Install amaranth-stdio + run: cd setup-niar-out/amaranth-stdio && pip install . + shell: bash + + - name: Checkout amaranth-boards + uses: actions/checkout@v4 + with: + repository: amaranth-lang/amaranth-boards + path: setup-niar-out/amaranth-boards + + - name: Install amaranth-boards + run: cd setup-niar-out/amaranth-boards && pip install . + shell: bash + + - name: Install Zig + if: ${{ inputs.install-zig }} + uses: goto-bus-stop/setup-zig@v2 + with: + version: ${{ inputs.install-zig }} + + - name: Report Zig version + if: ${{ inputs.install-zig }} + run: zig version + shell: bash \ No newline at end of file