Skip to content

Commit a3715a7

Browse files
committed
ci: Finally fix existing cross compilation issue
1 parent d7bdcd3 commit a3715a7

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,37 @@ jobs:
9595
--self-contained true
9696
9797
- name: Publish CLI Project
98+
if: (matrix.rid-os != 'linux') || (matrix.rid-os == 'linux' && matrix.arch == 'x64')
99+
shell: bash
100+
run: |
101+
dotnet publish ./src/RSML.CLI/RSML.CLI.csproj \
102+
-c Release \
103+
-r ${{ matrix.rid-os }}-${{ matrix.arch }} \
104+
-o ./dist/RSML.CLI-${{ matrix.rid-os }}-${{ matrix.arch }} \
105+
--self-contained true
106+
107+
- name: Publish CLI Project (Linux ARM)
108+
if: matrix.rid-os == 'linux' && matrix.arch == 'arm'
98109
shell: bash
99110
run: |
100111
dotnet publish ./src/RSML.CLI/RSML.CLI.csproj \
101112
-c Release \
102113
-r ${{ matrix.rid-os }}-${{ matrix.arch }} \
103114
-o ./dist/RSML.CLI-${{ matrix.rid-os }}-${{ matrix.arch }} \
115+
-p:ObjCopyName=arm-linux-gnueabihf-objcopy \
116+
-p:LinkerFlavor=lld \
117+
--self-contained true
118+
119+
- name: Publish CLI Project (Linux ARM64)
120+
if: matrix.rid-os == 'linux' && matrix.arch == 'arm64'
121+
shell: bash
122+
run: |
123+
dotnet publish ./src/RSML.CLI/RSML.CLI.csproj \
124+
-c Release \
125+
-r ${{ matrix.rid-os }}-${{ matrix.arch }} \
126+
-o ./dist/RSML.CLI-${{ matrix.rid-os }}-${{ matrix.arch }} \
127+
-p:ObjCopyName=aarch64-linux-gnu-objcopy \
128+
-p:LinkerFlavor=lld \
104129
--self-contained true
105130
106131
- name: Upload Artifacts

0 commit comments

Comments
 (0)