Skip to content

Commit e626e15

Browse files
authored
Merge pull request #3 from michaellass/github-action
CI using github actions
2 parents 0cfd114 + e896326 commit e626e15

File tree

3 files changed

+141
-43
lines changed

3 files changed

+141
-43
lines changed

.github/workflows/ci.yml

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
stable:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Install rust
18+
uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: stable
21+
override: true
22+
- name: Build
23+
run: cargo build --verbose --target x86_64-unknown-linux-gnu
24+
- name: Test
25+
run: cargo test --verbose --target x86_64-unknown-linux-gnu
26+
27+
beta:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v2
31+
- name: Install rust
32+
uses: actions-rs/toolchain@v1
33+
with:
34+
toolchain: beta
35+
override: true
36+
- name: Build
37+
run: cargo build --verbose --target x86_64-unknown-linux-gnu
38+
- name: Test
39+
run: cargo test --verbose --target x86_64-unknown-linux-gnu
40+
41+
nightly:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v2
45+
- name: Install rust
46+
uses: actions-rs/toolchain@v1
47+
with:
48+
toolchain: nightly
49+
override: true
50+
- name: Build
51+
run: cargo build --verbose --target x86_64-unknown-linux-gnu
52+
- name: Test
53+
run: cargo test --verbose --target x86_64-unknown-linux-gnu
54+
55+
addressSanitizer:
56+
runs-on: ubuntu-latest
57+
env:
58+
RUSTFLAGS: -Zsanitizer=address
59+
RUSTDOCFLAGS: -Zsanitizer=address
60+
steps:
61+
- uses: actions/checkout@v2
62+
- name: Install rust
63+
uses: actions-rs/toolchain@v1
64+
with:
65+
toolchain: nightly
66+
override: true
67+
components: rust-src
68+
- name: Build
69+
run: cargo build --verbose -Zbuild-std --target x86_64-unknown-linux-gnu
70+
- name: Test
71+
run: cargo test --verbose -Zbuild-std --target x86_64-unknown-linux-gnu
72+
73+
leakSanitizer:
74+
runs-on: ubuntu-latest
75+
env:
76+
RUSTFLAGS: -Zsanitizer=leak
77+
RUSTDOCFLAGS: -Zsanitizer=leak
78+
steps:
79+
- uses: actions/checkout@v2
80+
- name: Install rust
81+
uses: actions-rs/toolchain@v1
82+
with:
83+
toolchain: nightly
84+
override: true
85+
components: rust-src
86+
- name: Build
87+
run: cargo build --verbose -Zbuild-std --target x86_64-unknown-linux-gnu
88+
- name: Test
89+
run: cargo test --verbose -Zbuild-std --target x86_64-unknown-linux-gnu
90+
91+
memorySanitizer:
92+
runs-on: ubuntu-latest
93+
env:
94+
RUSTFLAGS: -Zsanitizer=memory
95+
RUSTDOCFLAGS: -Zsanitizer=memory
96+
steps:
97+
- uses: actions/checkout@v2
98+
- name: Install rust
99+
uses: actions-rs/toolchain@v1
100+
with:
101+
toolchain: nightly
102+
override: true
103+
components: rust-src
104+
- name: Build
105+
run: cargo build --verbose -Zbuild-std --target x86_64-unknown-linux-gnu
106+
- name: Test
107+
run: cargo test --verbose -Zbuild-std --target x86_64-unknown-linux-gnu
108+
109+
threadSanitizer:
110+
runs-on: ubuntu-latest
111+
env:
112+
RUSTFLAGS: -Zsanitizer=thread
113+
RUSTDOCFLAGS: -Zsanitizer=thread
114+
steps:
115+
- uses: actions/checkout@v2
116+
- name: Install rust
117+
uses: actions-rs/toolchain@v1
118+
with:
119+
toolchain: nightly
120+
override: true
121+
components: rust-src
122+
- name: Build
123+
run: cargo build --verbose -Zbuild-std --target x86_64-unknown-linux-gnu
124+
- name: Test
125+
run: cargo test --verbose -Zbuild-std --target x86_64-unknown-linux-gnu
126+
127+
miri:
128+
runs-on: ubuntu-latest
129+
steps:
130+
- uses: actions/checkout@v2
131+
- name: Install rust
132+
uses: actions-rs/toolchain@v1
133+
with:
134+
toolchain: nightly
135+
override: true
136+
components: miri
137+
- name: Setup
138+
run: cargo miri setup
139+
- name: Test
140+
run: cargo miri test --verbose

.travis.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# aligned_box: Allocate aligned heap memory in Rust.
22

3-
[![build](https://travis-ci.com/michaellass/aligned_box.svg?branch=master)](https://travis-ci.com/michaellass/aligned_box)
3+
[![CI](https://github.com/michaellass/aligned_box/actions/workflows/ci.yml/badge.svg)](https://github.com/michaellass/aligned_box/actions/workflows/ci.yml)
44
[![license](https://img.shields.io/github/license/michaellass/aligned_box.svg)](https://github.com/michaellass/aligned_box/blob/master/LICENSE)
55
[![crates.io](https://img.shields.io/crates/v/aligned_box.svg)](https://crates.io/crates/aligned_box)
66
[![docs.rs](https://docs.rs/aligned_box/badge.svg)](https://docs.rs/aligned_box)

0 commit comments

Comments
 (0)