aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yaml38
1 files changed, 14 insertions, 24 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 2acd44012..fb077e28d 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
18jobs: 18jobs:
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 }}
@@ -84,15 +70,14 @@ jobs:
84 - name: Prepare cache 70 - name: Prepare cache
85 run: cargo xtask pre-cache 71 run: cargo xtask pre-cache
86 72
87 - name: Prepare cache 2 73 # Weird targets to catch non-portable code
88 if: matrix.os == 'windows-latest' 74 rust-cross:
89 run: Remove-Item ./target/debug/xtask.exe, ./target/debug/deps/xtask.exe 75 name: Rust Cross
90
91 # Weird target to catch non-portable code
92 rust-power:
93 name: Rust Power
94 runs-on: ubuntu-latest 76 runs-on: ubuntu-latest
95 77
78 env:
79 targets: "powerpc-unknown-linux-gnu x86_64-unknown-linux-musl"
80
96 steps: 81 steps:
97 - name: Checkout repository 82 - name: Checkout repository
98 uses: actions/checkout@v2 83 uses: actions/checkout@v2
@@ -103,7 +88,9 @@ jobs:
103 toolchain: stable 88 toolchain: stable
104 profile: minimal 89 profile: minimal
105 override: true 90 override: true
106 target: 'powerpc-unknown-linux-gnu' 91
92 - name: Install Rust targets
93 run: rustup target add ${{ env.targets }}
107 94
108 - name: Cache cargo directories 95 - name: Cache cargo directories
109 uses: actions/cache@v2 96 uses: actions/cache@v2
@@ -114,14 +101,17 @@ jobs:
114 key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} 101 key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
115 102
116 - name: Check 103 - name: Check
117 run: cargo check --target=powerpc-unknown-linux-gnu --all-targets 104 run: |
105 for target in ${{ env.targets }}; do
106 cargo check --target=$target --all-targets
107 done
118 108
119 typescript: 109 typescript:
120 name: TypeScript 110 name: TypeScript
121 strategy: 111 strategy:
122 fail-fast: false 112 fail-fast: false
123 matrix: 113 matrix:
124 os: [ubuntu-latest, windows-latest, macos-latest] 114 os: [ubuntu-latest, windows-latest]
125 115
126 runs-on: ${{ matrix.os }} 116 runs-on: ${{ matrix.os }}
127 117