Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 7879d6e

Browse files
Initial commit
0 parents  commit 7879d6e

File tree

266 files changed

+24481
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+24481
-0
lines changed

.github/workflows/rust_build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Rust Build
2+
on:
3+
push:
4+
branches: [ "master" ]
5+
pull_request:
6+
branches: [ "master" ]
7+
env:
8+
CARGO_TERM_COLOR: always
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
ref: ${{ github.head_ref }}
16+
fetch-depth: 0
17+
- name: Build
18+
run: cargo build --verbose
19+
- name: Test
20+
run: cargo test --verbose
21+
- run: rustup component add clippy
22+
- uses: 10XGenomics/clippy-check@ed0387fa7a8848cc4a39b448220856192673e355
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
args: --all-features
26+
name: xtimer

.github/workflows/rust_deploy.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Rust Deploy
2+
permissions:
3+
id-token: write
4+
contents: write
5+
packages: write
6+
pull-requests: read
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: false
10+
on:
11+
push:
12+
branches: [ "master" ]
13+
env:
14+
CARGO_TERM_COLOR: always
15+
jobs:
16+
deploy-server:
17+
runs-on: ubuntu-latest
18+
steps:
19+
20+
# Install Dependencies
21+
- uses: actions/checkout@v3
22+
with:
23+
ref: ${{ github.head_ref }}
24+
fetch-depth: 0
25+
- name: "Git Version"
26+
id: "version"
27+
uses: "codacy/git-version@2.4.0"
28+
- name: Install podman and cross
29+
run: |
30+
sudo apt install -y podman
31+
cargo install cross
32+
33+
# Build
34+
- name: "Build x86_64-pc-windows-gnu"
35+
run: |
36+
cross clean
37+
cross build --target x86_64-pc-windows-gnu -r
38+
strip -s target/x86_64-pc-windows-gnu/release/xtimer.exe
39+
- name: "Compress x86_64-pc-windows-gnu"
40+
uses: "vimtor/action-zip@v1.1"
41+
with:
42+
files: "target/x86_64-pc-windows-gnu/release/xtimer.exe"
43+
dest: "xtimer-v${{ steps.version.outputs.version }}-x86_64-pc-windows-gnu.zip"
44+
- name: "Build x86_64-unknown-linux-gnu"
45+
run: |
46+
cross clean
47+
cross build --target x86_64-unknown-linux-gnu -r
48+
strip -s target/x86_64-unknown-linux-gnu/release/xtimer
49+
- name: "Compress x86_64-unknown-linux-gnu"
50+
uses: "vimtor/action-zip@v1.1"
51+
with:
52+
files: "target/x86_64-unknown-linux-gnu/release/xtimer"
53+
dest: "xtimer-v${{ steps.version.outputs.version }}-x86_64-unknown-linux-gnu.zip"
54+
55+
# Create Release
56+
- uses: "marvinpinto/action-automatic-releases@latest"
57+
with:
58+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
59+
automatic_release_tag: "${{ steps.version.outputs.version }}"
60+
prerelease: false
61+
title: "${{ steps.version.outputs.version }}"
62+
files: |
63+
*.zip

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Project exclude paths
2+
/target/
3+
/.idea/

0 commit comments

Comments
 (0)