• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: Release Test
2
3on:
4  push:
5    branches: ['rel*']
6  pull_request:
7    branches: ['rel*']
8
9# From here down this should be exactly the same as test.yml
10
11jobs:
12  test:
13    strategy:
14      matrix:
15        os: [ubuntu-16.04, ubuntu-latest, macos-latest, windows-latest]
16        rust_version: [stable]
17        include:
18        # check all tzs on most-recent OS's
19        - os: ubuntu-latest
20          rust_version: stable
21          exhaustive_tz: all_tzs
22        - os: windows-latest
23          rust_version: stable
24          exhaustive_tz: all_tzs
25        - os: macos-latest
26          rust_version: stable
27          exhaustive_tz: all_tzs
28        # test other rust versions
29        - os: ubuntu-latest
30          rust_version: beta
31        - os: ubuntu-latest
32          rust_version: nightly
33        - os: ubuntu-16.04
34          rust_version: 1.13.0
35        - os: macos-latest
36          rust_version: 1.13.0
37          # time doesn't work on windows with 1.13
38
39    runs-on: ${{ matrix.os }}
40
41    steps:
42      - uses: actions/checkout@v2
43
44      - name: Install rust
45        uses: actions-rs/toolchain@v1
46        with:
47          toolchain: ${{ matrix.rust_version }}
48          override: true
49
50      - name: Build and Test
51        run: bash ci/github.sh
52        env:
53          RUST_VERSION: ${{ matrix.rust_version }}
54          EXHAUSTIVE_TZ: ${{ matrix.exhaustive_tz }}
55
56  no_std:
57    strategy:
58      matrix:
59        os: [macos-latest, ubuntu-latest]
60
61    runs-on: ${{ matrix.os }}
62
63    steps:
64      - uses: actions/checkout@v2
65
66      - name: Install rust with no_std toolchain
67        uses: actions-rs/toolchain@v1
68        with:
69          toolchain: stable
70          target: thumbv6m-none-eabi
71          override: true
72
73      - name: Build no_std lib
74        run: cargo build --target thumbv6m-none-eabi --color=always
75        working-directory: ./ci/core-test
76
77  wasm:
78    strategy:
79      matrix:
80        os: [macos-latest]
81
82    runs-on: ${{ matrix.os }}
83
84    steps:
85      - uses: actions/checkout@v2
86
87      - name: Install rust
88        uses: actions-rs/toolchain@v1
89        with:
90          toolchain: stable
91          target: wasm32-unknown-unknown
92          override: true
93
94      - name: Install node
95        uses: actions/setup-node@v1
96        with:
97          node-version: '12'
98
99      - name: Install wasm-pack
100        run: |
101          export RUST_BACKTRACE=1
102          curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
103          wasm-pack --version
104
105      - name: Build and Test
106        run: bash ci/github.sh
107        env:
108          RUST_VERSION: stable
109          WASM: wasm_simple
110