Skip to content

Commit f7bafc4

Browse files
committed
Fixed release.yml file V2
1 parent 0bc630e commit f7bafc4

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ jobs:
6363
targets: ${{ matrix.target }}
6464

6565
- name: Install cross-compilation tools (Linux)
66-
if: matrix.os == 'ubuntu-latest' && matrix.target == 'aarch64-unknown-linux-gnu'
66+
if: matrix.os == 'ubuntu-22.04' && matrix.target == 'aarch64-unknown-linux-gnu'
6767
run: |
6868
sudo apt-get update
6969
sudo apt-get install -y gcc-aarch64-linux-gnu
7070
7171
- name: Install cargo-deb (Linux only)
72-
if: matrix.os == 'ubuntu-latest'
72+
if: matrix.os == 'ubuntu-22.04'
7373
run: cargo install cargo-deb
7474

7575
- name: Cache cargo registry
@@ -86,6 +86,8 @@ jobs:
8686
if [[ "${{ matrix.target }}" == "aarch64-unknown-linux-gnu" ]]; then
8787
export CC=aarch64-linux-gnu-gcc
8888
export CXX=aarch64-linux-gnu-g++
89+
export AR=aarch64-linux-gnu-ar
90+
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc
8991
fi
9092
cargo build --release --target ${{ matrix.target }}
9193
shell: bash
@@ -111,7 +113,7 @@ jobs:
111113
cp target/${{ matrix.target }}/release/netmgr.exe ${{ matrix.name }}
112114
113115
- name: Build Debian package (Linux x86_64 only)
114-
if: matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64-unknown-linux-gnu'
116+
if: matrix.os == 'ubuntu-22.04' && matrix.target == 'x86_64-unknown-linux-gnu'
115117
run: |
116118
cargo deb --target ${{ matrix.target }}
117119
cp target/${{ matrix.target }}/debian/*.deb netmgr_${{ github.ref_name }}_amd64.deb
@@ -122,6 +124,6 @@ jobs:
122124
tag_name: ${{ github.ref_name }}
123125
files: |
124126
${{ matrix.name }}
125-
${{ matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64-unknown-linux-gnu' && format('netmgr_{0}_amd64.deb', github.ref_name) || '' }}
127+
${{ matrix.os == 'ubuntu-22.04' && matrix.target == 'x86_64-unknown-linux-gnu' && format('netmgr_{0}_amd64.deb', github.ref_name) || '' }}
126128
env:
127129
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)