|
19 | 19 | - os: ubuntu-latest
|
20 | 20 | env:
|
21 | 21 | TARGET_TRIPLE: x86_64-pc-windows-gnu
|
| 22 | + - os: ubuntu-latest |
| 23 | + env: |
| 24 | + TARGET_TRIPLE: aarch64-unknown-linux-gnu |
22 | 25 |
|
23 | 26 | steps:
|
24 | 27 | - uses: actions/checkout@v2
|
@@ -49,11 +52,19 @@ jobs:
|
49 | 52 | sudo apt-get install -y gcc-mingw-w64-x86-64 wine-stable
|
50 | 53 | rustup target add x86_64-pc-windows-gnu
|
51 | 54 |
|
| 55 | + - name: Install AArch64 toolchain and qemu |
| 56 | + if: matrix.os == 'ubuntu-latest' && matrix.env.TARGET_TRIPLE == 'aarch64-unknown-linux-gnu' |
| 57 | + run: | |
| 58 | + sudo apt-get install -y gcc-aarch64-linux-gnu qemu-user |
| 59 | +
|
52 | 60 | - name: Prepare dependencies
|
53 | 61 | run: |
|
54 | 62 | git config --global user.email "[email protected]"
|
55 | 63 | git config --global user.name "User"
|
56 |
| - ./prepare.sh |
| 64 | + ./y.rs prepare |
| 65 | +
|
| 66 | + - name: Build |
| 67 | + run: ./y.rs build --sysroot none |
57 | 68 |
|
58 | 69 | - name: Test
|
59 | 70 | env:
|
|
87 | 98 | with:
|
88 | 99 | name: cg_clif-${{ runner.os }}-cross-x86_64-mingw
|
89 | 100 | path: cg_clif.tar.xz
|
| 101 | + |
| 102 | + build_windows: |
| 103 | + runs-on: windows-latest |
| 104 | + timeout-minutes: 60 |
| 105 | + |
| 106 | + steps: |
| 107 | + - uses: actions/checkout@v2 |
| 108 | + |
| 109 | + #- name: Cache cargo installed crates |
| 110 | + # uses: actions/cache@v2 |
| 111 | + # with: |
| 112 | + # path: ~/.cargo/bin |
| 113 | + # key: ${{ runner.os }}-cargo-installed-crates |
| 114 | + |
| 115 | + #- name: Cache cargo registry and index |
| 116 | + # uses: actions/cache@v2 |
| 117 | + # with: |
| 118 | + # path: | |
| 119 | + # ~/.cargo/registry |
| 120 | + # ~/.cargo/git |
| 121 | + # key: ${{ runner.os }}-cargo-registry-and-index-${{ hashFiles('**/Cargo.lock') }} |
| 122 | + |
| 123 | + #- name: Cache cargo target dir |
| 124 | + # uses: actions/cache@v2 |
| 125 | + # with: |
| 126 | + # path: target |
| 127 | + # key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }} |
| 128 | + |
| 129 | + - name: Prepare dependencies |
| 130 | + run: | |
| 131 | + git config --global user.email "[email protected]" |
| 132 | + git config --global user.name "User" |
| 133 | + git config --global core.autocrlf false |
| 134 | + rustup set default-host x86_64-pc-windows-gnu |
| 135 | + rustc y.rs -o y.exe -g |
| 136 | + ./y.exe prepare |
| 137 | +
|
| 138 | + - name: Build |
| 139 | + #name: Test |
| 140 | + run: | |
| 141 | + # Enable backtraces for easier debugging |
| 142 | + #export RUST_BACKTRACE=1 |
| 143 | +
|
| 144 | + # Reduce amount of benchmark runs as they are slow |
| 145 | + #export COMPILE_RUNS=2 |
| 146 | + #export RUN_RUNS=2 |
| 147 | +
|
| 148 | + # Enable extra checks |
| 149 | + #export CG_CLIF_ENABLE_VERIFIER=1 |
| 150 | +
|
| 151 | + ./y.exe build |
| 152 | +
|
| 153 | + #- name: Package prebuilt cg_clif |
| 154 | + # run: tar cvfJ cg_clif.tar.xz build |
| 155 | + |
| 156 | + #- name: Upload prebuilt cg_clif |
| 157 | + # uses: actions/upload-artifact@v2 |
| 158 | + # with: |
| 159 | + # name: cg_clif-${{ runner.os }} |
| 160 | + # path: cg_clif.tar.xz |
0 commit comments