Skip to content

Commit

Permalink
Update generate-friwrt.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
frizkyiman authored May 7, 2024
1 parent fe68675 commit c53b198
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/generate-friwrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@ jobs:
else
echo "target=['${{ inputs.target }}']" >> $GITHUB_OUTPUT
fi
if [ "${{ inputs.tunnel }}" == "all" ]; then
echo "tunnel=['openclash','neko','passwall','neko-openclash','openclash-passwall','neko-passwall','openclash-passwall-neko','no-tunnel']" >> $GITHUB_OUTPUT
else
echo "tunnel=['${{ inputs.tunnel }}']" >> $GITHUB_OUTPUT
fi
- name: Checking Tunnel Option
run: |
Expand Down Expand Up @@ -244,26 +238,33 @@ jobs:
echo "status=success" >> $GITHUB_OUTPUT
echo -e "Server space usage before starting to compile: \n$(df -hT ${PWD}) \n"
- name: Set Matrix Run Tunnel
id: set-matrix-tunnel
run: |
if [ "${{ inputs.tunnel }}" == "all" ]; then
echo "tunnel=['openclash','neko','passwall','neko-openclash','openclash-passwall','neko-passwall','openclash-passwall-neko','no-tunnel']" >> $GITHUB_OUTPUT
else
echo "tunnel=['${{ inputs.tunnel }}']" >> $GITHUB_OUTPUT
fi
Compile:
needs: Devices
runs-on: ubuntu-latest
name: "${{ matrix.tunnel }}"
name: "${{ set-matrix-tunnel }}"

strategy:
fail-fast: false
matrix:
tunnel: ${{fromJSON(needs.prebuild.outputs.tunnel)}}
tunnel: ${{fromJSON(needs.Devices.outputs.tunnel)}}

steps:
- name: Tunnel Option
if: steps.scripts.outputs.status == 'success' && !cancelled()
run: |
echo "TUNNEL=${{ matrix.tunnel }}" >> $GITHUB_ENV
- name: Compile Firmware
id: compile
if: steps.scripts.outputs.status == 'success' && !cancelled()
run: |
cd $WORKING_DIR
mkdir -p compiled_images
Expand Down

0 comments on commit c53b198

Please sign in to comment.