66
77jobs :
88 check :
9- name : check
9+ name : check (${{ matrix.name }})
1010 runs-on : ubuntu-latest
11+ strategy :
12+ matrix :
13+ include :
14+ - name : " default"
15+ features : " "
16+ - name : " all"
17+ features : --all-features
18+ - name : " backend::ui"
19+ features : --features "backend::ui" --no-default-features
1120 steps :
1221 - uses : actions/checkout@v1
22+ - name : Install tools
23+ run : sudo apt-get install build-essential libncurses5-dev libncursesw5-dev
1324 - name : Check formatting
1425 run : cargo fmt --all -- --check
1526 - name : Check README.md synchronization
@@ -19,11 +30,11 @@ jobs:
1930 - name : Scan code
2031 run : |
2132 rustup component add clippy
22- cargo clippy --all-targets --all- features -- -D warnings
33+ cargo clippy --all-targets ${{ matrix. features }} -- -D warnings
2334 - name : Execute tests
24- run : cargo test
35+ run : cargo test ${{ matrix.features }}
2536 - name : Build program
26- run : cargo build
37+ run : cargo build ${{ matrix.features }}
2738
2839 tag :
2940 if : github.ref == 'refs/heads/master'
5162 body : |
5263 Release ${{ steps.tag.outputs.new_tag }}.
5364 draft : false
54- prerelease : true
65+ prerelease : false
5566 - run : printf ${{ steps.create_release.outputs.upload_url }} > ${{ env.RELEASE_FILE }}
5667 - name : Upload release data
5768 uses : actions/upload-artifact@v1.0.0
6879 - name : Get version
6980 id : get_version
7081 run : echo ::set-output name=VERSION::$(git tag --points-at HEAD --sort -version:refname | head -1)
82+ - name : Install tools
83+ run : sudo apt-get install build-essential libncurses5-dev libncursesw5-dev
7184 - name : Publish
7285 id : publish
7386 run : |
99112 id : get_release_data
100113 run : echo ::set-output name=upload_url::$(cat RELEASE/${{ env.RELEASE_FILE }})
101114 - name : install tools
102- run : rustup target install ${{ matrix.target }}
115+ run : |
116+ sudo apt-get install build-essential libncurses5-dev libncursesw5-dev &&
117+ rustup target install ${{ matrix.target }}
103118 - name : build-${{ matrix.target }}
104119 run : |
105120 VERSION=${{ steps.get_version.outputs.VERSION }} make update-version &&
0 commit comments