summaryrefslogtreecommitdiff
path: root/.github/workflows/rust.yml
diff options
context:
space:
mode:
authorLi Zhineng <[email protected]>2024-07-06 15:29:39 +0800
committerGitHub <[email protected]>2024-07-06 15:29:39 +0800
commita5ea194931117e1bf18a48118a5e930f58b7ada6 (patch)
tree18508fd42e9847bba90539dd72e01870da7959b1 /.github/workflows/rust.yml
parentd75b66b20217c3df378db138566c028038c0b9b3 (diff)
downloadchina-unicom-iptv-gd-a5ea194931117e1bf18a48118a5e930f58b7ada6.tar.gz
china-unicom-iptv-gd-a5ea194931117e1bf18a48118a5e930f58b7ada6.zip
Continuous Integration (#3)
* ci * remove branch limits * publish workflow * specify working directory * install libssl-dev on ubuntu-latest * drop x86_64-unknown-linux-musl * fix tar * list files * prefix working directory * install openssl * use cross * fix section * remove openssl * use edge images * quoted * edge image for aarch64-unknown-linux-gnu * custom dockerfile * build-essential && remove CAMKE* * combine pre-build with target * fix package not found * install pkg-config * remove build-essential * install build-essential * $CROSS_DEB_ARCH * fix arch * remove openssl * remove file listing * remove prefixed path * use actions/upload-artifact@v4 * fix upload step * Revert "fix upload step" This reverts commit da9814e42ce568a1b0707f23df02696ad373dc22. * Revert "use actions/upload-artifact@v4" This reverts commit 0bcc2486c6a4bd4fc865eedb458098724ae6b88d. * Revert "remove prefixed path" This reverts commit 620b985b18e84cf97e40695c9852762c853434b6. * Revert "fix tar" This reverts commit a013b23161e0b9193161e57f9a878b04b2eba874. * remove -p for mkdir * add target: x86_64-apple-darwin
Diffstat (limited to '.github/workflows/rust.yml')
-rw-r--r--.github/workflows/rust.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
new file mode 100644
index 0000000..29fd6f7
--- /dev/null
+++ b/.github/workflows/rust.yml
@@ -0,0 +1,24 @@
+name: Rust
+
+on:
+ push:
+ pull_request:
+
+env:
+ CARGO_TERM_COLOR: always
+
+defaults:
+ run:
+ working-directory: ./decryptor
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+ - name: Build
+ run: cargo build --verbose
+ - name: Run tests
+ run: cargo test --verbose