@@ -22,59 +22,72 @@ jobs:
22
22
target : x86_64-unknown-linux-musl
23
23
rust : stable
24
24
build_deb : true
25
- - build : aarch64-musl
26
- host : ubuntu-latest
27
- target : aarch64-unknown-linux-musl
28
- rust : stable
29
- build_deb : true
25
+ # - build: aarch64-musl
26
+ # host: ubuntu-latest
27
+ # target: aarch64-unknown-linux-musl
28
+ # rust: stable
29
+ # build_deb: true
30
30
runs-on : ${{ matrix.host }}
31
31
steps :
32
32
- uses : actions/checkout@v4
33
- - name : Install Rust
34
- uses : dtolnay/rust-toolchain@master
35
- with :
36
- toolchain : ${{ matrix.rust }}
37
- targets : ${{ matrix.target }}
38
- - uses : taiki-e/install-action@v2.44.58
39
- with :
40
- tool : cross,cargo-deb
41
- - uses : Swatinem/rust-cache@v2
42
- with :
43
- key : " ${{matrix.build}}"
44
- - name : install packages (ubuntu builds only)
45
- if : startsWith(matrix.host, 'ubuntu')
46
- run : scripts/install-ubuntu-packages
47
- # native builds need all of these; cross builds only need binutils-multiarch
48
-
49
- # - name: Build
50
- # run: cross build --release --locked --target ${{ matrix.target }}
51
- - uses : taiki-e/upload-rust-binary-action@v1.22.1
52
- id : build
53
- with :
54
- bin : qcp
55
- token : ${{ secrets.GITHUB_TOKEN }}
56
- target : ${{ matrix.target }}
57
- include : README.md,LICENSE,CHANGELOG.md
58
- leading-dir : true
59
- tar : unix
60
- zip : windows
61
- dry_run : ${{ env.WORKFLOW_TEST }}
62
- - name : Make deb package
63
- if : ${{ matrix.build_deb }}
64
- run : scripts/make-debian-package --release ${{ matrix.target }}
65
- - name : Upload binary artifact
66
- uses : actions/upload-artifact@v4
67
- with :
68
- name : qcp-tarball-${{ matrix.target }}
69
- path : ${{ steps.build.outputs.archive }}.tar.gz
70
- - name : Upload deb artifact
71
- if : ${{ matrix.build_deb }}
72
- uses : actions/upload-artifact@v4
73
- with :
74
- name : qcp-deb-${{ matrix.target }}
75
- path : target/**/debian/qcp*.deb
76
- - name : Publish deb package to release
33
+ - name : test
34
+ run : |
35
+ echo event: ${{ github.event_name }}
36
+ echo is_wfd: ${{ github.event_name == 'workflow_dispatch' }}
37
+ echo not_wfd: ${{ github.event_name != 'workflow_dispatch' }}
38
+ echo WFTEST: ${{ env.WORKFLOW_TEST }}
39
+ echo not_WFTEST: ${{ ! env.WORKFLOW_TEST }}
40
+ - name : wf2
41
+ if : ${{ env.WORKFLOW_TEST }}
42
+ run : echo wf2
43
+ - name : wf3
77
44
if : ${{ ! env.WORKFLOW_TEST }}
78
- env :
79
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
80
- run : gh release upload ${{ github.ref }} ${{ env.BUILT_DEB_FILE }}
45
+ run : echo wf3
46
+ # - name: Install Rust
47
+ # uses: dtolnay/rust-toolchain@master
48
+ # with:
49
+ # toolchain: ${{ matrix.rust }}
50
+ # targets: ${{ matrix.target }}
51
+ # - uses: taiki-e/install-action@v2.44.58
52
+ # with:
53
+ # tool: cross,cargo-deb
54
+ # - uses: Swatinem/rust-cache@v2
55
+ # with:
56
+ # key: "${{matrix.build}}"
57
+ # - name: install packages (ubuntu builds only)
58
+ # if: startsWith(matrix.host, 'ubuntu')
59
+ # run: scripts/install-ubuntu-packages
60
+ # # native builds need all of these; cross builds only need binutils-multiarch
61
+
62
+ # #- name: Build
63
+ # # run: cross build --release --locked --target ${{ matrix.target }}
64
+ # - uses: taiki-e/upload-rust-binary-action@v1.22.1
65
+ # id: build
66
+ # with:
67
+ # bin: qcp
68
+ # token: ${{ secrets.GITHUB_TOKEN }}
69
+ # target: ${{ matrix.target }}
70
+ # include: README.md,LICENSE,CHANGELOG.md
71
+ # leading-dir: true
72
+ # tar: unix
73
+ # zip: windows
74
+ # dry_run: ${{ github.event_name == 'workflow_dispatch' }}
75
+ # - name: Make deb package
76
+ # if: ${{ matrix.build_deb }}
77
+ # run: scripts/make-debian-package --release ${{ matrix.target }}
78
+ # - name: Upload binary artifact
79
+ # uses: actions/upload-artifact@v4
80
+ # with:
81
+ # name: qcp-tarball-${{ matrix.target }}
82
+ # path: ${{ steps.build.outputs.archive }}.tar.gz
83
+ # - name: Upload deb artifact
84
+ # if: ${{ matrix.build_deb }}
85
+ # uses: actions/upload-artifact@v4
86
+ # with:
87
+ # name: qcp-deb-${{ matrix.target }}
88
+ # path: target/**/debian/qcp*.deb
89
+ # - name: Publish deb package to release
90
+ # if: ${{ github.event_name != 'workflow_dispatch' }}
91
+ # env:
92
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
93
+ # run: gh release upload ${{ github.ref }} ${{ env.BUILT_DEB_FILE }}
0 commit comments