aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yaml36
1 files changed, 15 insertions, 21 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 2acd44012..2deb009ce 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 }}
@@ -39,7 +25,7 @@ jobs:
39 strategy: 25 strategy:
40 fail-fast: false 26 fail-fast: false
41 matrix: 27 matrix:
42 os: [ubuntu-latest, windows-latest, macos-latest] 28 os: [ubuntu-latest, windows-latest] #, macos-latest]
43 29
44 steps: 30 steps:
45 - name: Checkout repository 31 - name: Checkout repository
@@ -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,14 +105,17 @@ 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
121 strategy: 115 strategy:
122 fail-fast: false 116 fail-fast: false
123 matrix: 117 matrix:
124 os: [ubuntu-latest, windows-latest, macos-latest] 118 os: [ubuntu-latest, windows-latest]
125 119
126 runs-on: ${{ matrix.os }} 120 runs-on: ${{ matrix.os }}
127 121