diff options
author | Igor Aleksanov <[email protected]> | 2020-08-12 15:26:43 +0100 |
---|---|---|
committer | Igor Aleksanov <[email protected]> | 2020-08-12 15:26:43 +0100 |
commit | b50bb800a5b5e01b6cb4de10330fd5b61d6cd0db (patch) | |
tree | adb19b05996e8a2829f5a6eb0ed7017404aaf7da /.github | |
parent | 13f736d4a13bdf5af2cdd6a4832a41470431a70b (diff) | |
parent | 6be5ab02008b442c85c201968b97f24f13c4692e (diff) |
Merge branch 'master' into add-disable-diagnostics
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yaml | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2acd44012..f46fb8fec 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml | |||
@@ -16,20 +16,6 @@ env: | |||
16 | RUSTUP_MAX_RETRIES: 10 | 16 | RUSTUP_MAX_RETRIES: 10 |
17 | 17 | ||
18 | jobs: | 18 | jobs: |
19 | # rust-audit: | ||
20 | # name: Audit Rust vulnerabilities | ||
21 | # runs-on: ubuntu-latest | ||
22 | # steps: | ||
23 | # - name: Checkout repository | ||
24 | # uses: actions/checkout@v2 | ||
25 | |||
26 | # - uses: actions-rs/[email protected] | ||
27 | # with: | ||
28 | # crate: cargo-audit | ||
29 | # use-tool-cache: true | ||
30 | |||
31 | # - run: cargo audit | ||
32 | |||
33 | rust: | 19 | rust: |
34 | name: Rust | 20 | name: Rust |
35 | runs-on: ${{ matrix.os }} | 21 | runs-on: ${{ matrix.os }} |
@@ -88,11 +74,14 @@ jobs: | |||
88 | if: matrix.os == 'windows-latest' | 74 | if: matrix.os == 'windows-latest' |
89 | run: Remove-Item ./target/debug/xtask.exe, ./target/debug/deps/xtask.exe | 75 | run: Remove-Item ./target/debug/xtask.exe, ./target/debug/deps/xtask.exe |
90 | 76 | ||
91 | # Weird target to catch non-portable code | 77 | # Weird targets to catch non-portable code |
92 | rust-power: | 78 | rust-cross: |
93 | name: Rust Power | 79 | name: Rust Cross |
94 | runs-on: ubuntu-latest | 80 | runs-on: ubuntu-latest |
95 | 81 | ||
82 | env: | ||
83 | targets: "powerpc-unknown-linux-gnu x86_64-unknown-linux-musl" | ||
84 | |||
96 | steps: | 85 | steps: |
97 | - name: Checkout repository | 86 | - name: Checkout repository |
98 | uses: actions/checkout@v2 | 87 | uses: actions/checkout@v2 |
@@ -103,7 +92,9 @@ jobs: | |||
103 | toolchain: stable | 92 | toolchain: stable |
104 | profile: minimal | 93 | profile: minimal |
105 | override: true | 94 | override: true |
106 | target: 'powerpc-unknown-linux-gnu' | 95 | |
96 | - name: Install Rust targets | ||
97 | run: rustup target add ${{ env.targets }} | ||
107 | 98 | ||
108 | - name: Cache cargo directories | 99 | - name: Cache cargo directories |
109 | uses: actions/cache@v2 | 100 | uses: actions/cache@v2 |
@@ -114,7 +105,10 @@ jobs: | |||
114 | key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | 105 | key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} |
115 | 106 | ||
116 | - name: Check | 107 | - name: Check |
117 | run: cargo check --target=powerpc-unknown-linux-gnu --all-targets | 108 | run: | |
109 | for target in ${{ env.targets }}; do | ||
110 | cargo check --target=$target --all-targets | ||
111 | done | ||
118 | 112 | ||
119 | typescript: | 113 | typescript: |
120 | name: TypeScript | 114 | name: TypeScript |