Skip to content

Commit 02c07f2

Browse files
committed
add major complexity
1 parent e094e5e commit 02c07f2

23 files changed

+1993
-138
lines changed

.github/workflows/build.yml

Lines changed: 75 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,77 @@
1-
name: Build
2-
on:
3-
push:
4-
workflow_dispatch:
5-
inputs:
6-
debug_enabled:
7-
description: "Run the build with tmate debugging enabled"
8-
required: false
9-
default: false
1+
# name: Build
2+
# on:
3+
# push:
4+
# workflow_dispatch:
5+
# inputs:
6+
# debug_enabled:
7+
# description: "Run the build with tmate debugging enabled"
8+
# required: false
9+
# default: false
1010

11-
jobs:
12-
# fmt_clippy:
13-
# runs-on: ubuntu-latest
14-
# steps:
15-
# - uses: actions/checkout@v3
16-
# with:
17-
# fetch-depth: 0
18-
# - name: Setup tmate session
19-
# uses: mxschmitt/action-tmate@v3
20-
# if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
21-
# - name: Lint (rustfmt)
22-
# run: cargo fmt -- --check
23-
# - name: Lint (clippy)
24-
# run: cargo clippy --all-targets --all-features -- -D warnings
11+
# jobs:
12+
# # fmt_clippy:
13+
# # runs-on: ubuntu-latest
14+
# # steps:
15+
# # - uses: actions/checkout@v3
16+
# # with:
17+
# # fetch-depth: 0
18+
# # - name: Setup tmate session
19+
# # uses: mxschmitt/action-tmate@v3
20+
# # if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
21+
# # - name: Lint (rustfmt)
22+
# # run: cargo fmt -- --check
23+
# # - name: Lint (clippy)
24+
# # run: cargo clippy --all-targets --all-features -- -D warnings
2525

26-
build:
27-
runs-on: ubuntu-latest
28-
strategy:
29-
matrix:
30-
job:
31-
# - { target: x86_64-unknown-linux-musl, pretty: x86_64 }
32-
# - { target: arm-unknown-linux-musleabihf, pretty: armv6l }
33-
# - { target: armv7-unknown-linux-musleabihf, pretty: armv7l }
34-
# - { target: aarch64-unknown-linux-musl, pretty: aarch64 }
35-
# - {
36-
# target: x86_64-unknown-linux-musl,
37-
# pretty: x86_64-backend,
38-
# args: --features rusqlite/bundled,
39-
# }
40-
# - {
41-
# target: arm-unknown-linux-musleabihf,
42-
# pretty: armv6l-backend,
43-
# args: --features rusqlite/bundled,
44-
# }
45-
# - {
46-
# target: armv7-unknown-linux-gnueabihf,
47-
# pretty: armv7l-backend,
48-
# args: --features rusqlite/bundled,
49-
# }
50-
- { target: aarch64-unknown-linux-gnu, pretty: aarch64-backend }
51-
steps:
52-
- uses: actions/checkout@v3
53-
with:
54-
fetch-depth: 0
55-
- run: |
56-
sudo apt-get update
57-
sudo apt-get install -y -qq libasound2-dev libudev-dev pkg-config libssl-dev libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
58-
- name: Install rust toolchain
59-
uses: actions-rs/toolchain@v1
60-
with:
61-
toolchain: stable
62-
profile: minimal
63-
target: ${{ matrix.job.target }}
64-
- uses: Swatinem/rust-cache@v1
65-
with:
66-
key: ${{ matrix.job.pretty }}
67-
- name: Build Tricked-Bot
68-
uses: actions-rs/cargo@v1
69-
with:
70-
use-cross: true
71-
command: build
72-
args: --release --bin tricked-bot --target ${{ matrix.job.target }} ${{ matrix.job.args }}
73-
- name: Upload binary
74-
uses: actions/upload-artifact@v4
75-
with:
76-
name: tricked-bot-${{ matrix.job.pretty }}
77-
path: target/${{ matrix.job.target }}/release/tricked-bot
26+
# build:
27+
# runs-on: ubuntu-latest
28+
# strategy:
29+
# matrix:
30+
# job:
31+
# # - { target: x86_64-unknown-linux-musl, pretty: x86_64 }
32+
# # - { target: arm-unknown-linux-musleabihf, pretty: armv6l }
33+
# # - { target: armv7-unknown-linux-musleabihf, pretty: armv7l }
34+
# # - { target: aarch64-unknown-linux-musl, pretty: aarch64 }
35+
# # - {
36+
# # target: x86_64-unknown-linux-musl,
37+
# # pretty: x86_64-backend,
38+
# # args: --features rusqlite/bundled,
39+
# # }
40+
# # - {
41+
# # target: arm-unknown-linux-musleabihf,
42+
# # pretty: armv6l-backend,
43+
# # args: --features rusqlite/bundled,
44+
# # }
45+
# # - {
46+
# # target: armv7-unknown-linux-gnueabihf,
47+
# # pretty: armv7l-backend,
48+
# # args: --features rusqlite/bundled,
49+
# # }
50+
# - { target: aarch64-unknown-linux-gnu, pretty: aarch64-backend }
51+
# steps:
52+
# - uses: actions/checkout@v3
53+
# with:
54+
# fetch-depth: 0
55+
# - run: |
56+
# sudo apt-get update
57+
# sudo apt-get install -y -qq libasound2-dev libudev-dev pkg-config libssl-dev libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
58+
# - name: Install rust toolchain
59+
# uses: actions-rs/toolchain@v1
60+
# with:
61+
# toolchain: stable
62+
# profile: minimal
63+
# target: ${{ matrix.job.target }}
64+
# - uses: Swatinem/rust-cache@v1
65+
# with:
66+
# key: ${{ matrix.job.pretty }}
67+
# - name: Build Tricked-Bot
68+
# uses: actions-rs/cargo@v1
69+
# with:
70+
# use-cross: true
71+
# command: build
72+
# args: --release --bin tricked-bot --target ${{ matrix.job.target }} ${{ matrix.job.args }}
73+
# - name: Upload binary
74+
# uses: actions/upload-artifact@v4
75+
# with:
76+
# name: tricked-bot-${{ matrix.job.pretty }}
77+
# path: target/${{ matrix.job.target }}/release/tricked-bot

0 commit comments

Comments
 (0)