Skip to content

Commit e015147

Browse files
committed
feat: update generate.yaml and remove Makefile
1 parent a9d6fbb commit e015147

2 files changed

Lines changed: 29 additions & 52 deletions

File tree

.github/workflows/generate.yaml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ jobs:
6969
run: |
7070
if [[ "${{matrix.target}}" == *"windows"* ]]; then
7171
echo "is_win=1" >> $GITHUB_ENV
72+
wget https://github.com/chainreactors/malefic/releases/latest/download/resources.zip
73+
unzip resources.zip -d resources
74+
wget https://github.com/chainreactors/malefic/releases/latest/download/malefic-mutant-x86_64-unknown-linux-musl
75+
chmod +x malefic-mutant-x86_64-unknown-linux-musl
7276
else
7377
echo "is_win=0" >> $GITHUB_ENV
7478
fi
@@ -91,18 +95,39 @@ jobs:
9195
echo "$SECRET_AUTORUN_YAML_CONTENT" | base64 -d > autorun.yaml
9296
9397
- name: Build(${{ github.event.inputs.package }}, ${{matrix.target}})
94-
if : ${{ github.event.inputs.package != 'modules' }}
98+
if : ${{ github.event.inputs.package == 'beacon' }}
9599
shell: 'script --return --quiet --log-out /dev/null --command "bash -e {0}"'
96100
run: |
97-
docker run -v $(pwd):/root/src ghcr.io/chainreactors/malefic-builder:v0.0.4 \
98-
bash -c "make ${{ github.event.inputs.package }} target_triple=${{matrix.target}} -f ./Makefile"
101+
docker run -v $(pwd):/root/src ghcr.io/chainreactors/malefic-builder:latest \
102+
bash -c "./malefic-mutant-x86_64-unknown-linux-musl generate beacon;./malefic-mutant-x86_64-unknown-linux-musl build malefic --target ${{matrix.target}} "
103+
104+
- name: Build(${{ github.event.inputs.package }}, ${{matrix.target}})
105+
if : ${{ github.event.inputs.package == 'pulse' }}
106+
shell: 'script --return --quiet --log-out /dev/null --command "bash -e {0}"'
107+
run: |
108+
docker run -v $(pwd):/root/src ghcr.io/chainreactors/malefic-builder:latest \
109+
bash -c "./malefic-mutant-x86_64-unknown-linux-musl generate pulse x64 win;./malefic-mutant-x86_64-unknown-linux-musl build pulse;"
110+
111+
- name: Build(${{ github.event.inputs.package }}, ${{matrix.target}})
112+
if : ${{ github.event.inputs.package == 'bind' }}
113+
shell: 'script --return --quiet --log-out /dev/null --command "bash -e {0}"'
114+
run: |
115+
docker run -v $(pwd):/root/src ghcr.io/chainreactors/malefic-builder:latest \
116+
bash -c "./malefic-mutant-x86_64-unknown-linux-musl generate bind;./malefic-mutant-x86_64-unknown-linux-musl build bind --target ${{matrix.target}} "
117+
118+
- name: Build(${{ github.event.inputs.package }}, ${{matrix.target}})
119+
if : ${{ github.event.inputs.package == 'prelude' }}
120+
shell: 'script --return --quiet --log-out /dev/null --command "bash -e {0}"'
121+
run: |
122+
docker run -v $(pwd):/root/src ghcr.io/chainreactors/malefic-builder:latest \
123+
bash -c "./malefic-mutant-x86_64-unknown-linux-musl generate prelude autorun.yaml;./malefic-mutant-x86_64-unknown-linux-musl build prelude"
99124
100125
- name: Build(${{ github.event.inputs.package }},${{matrix.target}})
101126
if : ${{ github.event.inputs.package == 'modules' }}
102127
shell: 'script --return --quiet --log-out /dev/null --command "bash -e {0}"'
103128
run: |
104129
docker run -v $(pwd):/root/src ghcr.io/chainreactors/malefic-builder:v0.0.4 \
105-
bash -c "make ${{ github.event.inputs.package }} target_triple=${{matrix.target}} malefic_modules_features=${{ github.event.inputs.malefic_modules_features }} -f ./Makefile"
130+
bash -c "./malefic-mutant-x86_64-unknown-linux-musl generate modules ${{ github.event.inputs.malefic_modules_features }};./malefic-mutant-x86_64-unknown-linux-musl build modules"
106131
107132
- name: Move ${{ github.event.inputs.package }} to output
108133
run: |

Makefile

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)