@@ -20,55 +20,10 @@ jobs:
20
20
with :
21
21
# Important to fetch the tags
22
22
fetch-depth : 0
23
- - name : Setup Rust
24
- uses : moonrepo/setup-rust@v1
23
+ - name : Build Packages
24
+ uses : ./.github/actions/package
25
25
with :
26
- components : clippy
27
- targets : aarch64-unknown-linux-gnu
28
- bins : cargo-deny, cargo-about, cargo-generate-rpm, cargo-deb, cargo-zigbuild
29
- - name : Setup nightly toolchain and tools
30
- run : |
31
- sudo apt-get update -qq && sudo apt-get install -y gcc-aarch64-linux-gnu
32
- wget -q -P /tmp http://deb.debian.org/debian/pool/main/d/dpkg-sig/dpkg-sig_0.13.1+nmu4_all.deb
33
- sudo apt install --yes /tmp/dpkg-sig_0.13.1+nmu4_all.deb rpm gnupg2
34
- rustup toolchain install nightly
35
- rustup component add --toolchain nightly rustfmt
36
- # Install zig 0.13 release, needed for cargo-zigbuild (latest release doesn't work right now)
37
- wget https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz -qO zig.tar.xz
38
- mkdir -p ${HOME}/zig
39
- tar -xJ -C ${HOME}/zig --strip-components=1 -f zig.tar.xz
40
- echo ${HOME}/zig >> ${GITHUB_PATH}
41
- - name : Configure foreign git repos
42
- # Make sure the runner has access to the protobuf repo using an access token
43
- run : git config --global url."https://${{ secrets.CI_PROTOBUF_ACCESS }}@github.com/thinkparq/protobuf".insteadOf https://github.com/thinkparq/protobuf
44
- - name : Run checks and tests
45
- run : |
46
- make check
47
- make deny
48
- make test
49
- - name : Build x86_64 packages
50
- env :
51
- CARGO_TARGET : x86_64-unknown-linux-gnu
52
- GLIBC_VERSION : 2.27
53
- run : make package
54
- - name : Build aarch64 packages
55
- env :
56
- CARGO_TARGET : aarch64-unknown-linux-gnu
57
- BIN_UTIL_PREFIX : aarch64-linux-gnu-
58
- GLIBC_VERSION : 2.27
59
- run : make package
60
- - name : Generate checksums for all files
61
- run : |
62
- cd target/package
63
- rm -rf checksums.txt
64
- for file in *.rpm *.deb; do
65
- # Skip if it's a directory
66
- if [ -f "$file" ]; then
67
- sha256sum "$file" >> checksums.txt
68
- fi
69
- done
70
- - name : show checksums
71
- run : cat target/package/checksums.txt
26
+ CI_PROTOBUF_ACCESS_TOKEN : ${{ secrets.CI_PROTOBUF_ACCESS }}
72
27
- name : Import GPG key
73
28
id : import_gpg
74
29
uses : crazy-max/ghaction-import-gpg@v6
0 commit comments