aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/setup_aedifex/action.yml
blob: 97f2869a5786f1caa6e10ee38e9f5a144155a6b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# https://cardinalby.github.io/blog/post/github-actions/dry-reusing-code-in-github-actions/
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
name: 'Setup Aedifex'
runs:
  using: "composite"
  steps:
    # https://github.com/actions/setup-java
    - uses: actions/setup-java@v2
      with:
        distribution: 'temurin'
        java-version: '17'
    
    # Presumably, whoever invokes this action has already done a checkout.
    # - uses: actions/checkout@v2
    
    # Install Aedifex
    - run: wget https://github.com/LuxLang/lux/releases/download/0.6.5/aedifex_do_not_touch_7.jar && mv aedifex_do_not_touch_7.jar aedifex.jar
      shell: bash
    
    # Make the `lux` command available.
    - run: mv ./shell/lux.sh ./lux.sh
      shell: bash
    
    - run: cd ./stdlib/ && ../lux.sh clean && cd ..
      shell: bash