Merge pull request #344 from Luni-4/cargo-publish

Update and fix Github Actions
This commit is contained in:
est31 2019-10-26 15:45:33 +02:00 committed by GitHub
commit 8f28048f61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 2 deletions

View File

@ -11,8 +11,13 @@ jobs:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Install alsa - name: Install alsa
run: sudo apt-get install libasound2-dev run: sudo apt-get install libasound2-dev
- name: Install clippy - name: Install stable
run: rustup component add clippy uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- name: Run clippy - name: Run clippy
uses: actions-rs/clippy-check@v1 uses: actions-rs/clippy-check@v1
with: with:
@ -27,6 +32,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Install alsa
run: sudo apt-get install libasound2-dev
- name: Run cargo publish - name: Run cargo publish
env: env:
MANIFEST: alsa-sys/Cargo.toml MANIFEST: alsa-sys/Cargo.toml
@ -46,6 +53,7 @@ jobs:
- name: Install stable - name: Install stable
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
profile: minimal
toolchain: stable toolchain: stable
override: true override: true
- name: Run without features - name: Run without features
@ -74,6 +82,7 @@ jobs:
- name: Install stable - name: Install stable
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
profile: minimal
toolchain: stable toolchain: stable
target: ${{ matrix.target }} target: ${{ matrix.target }}
- name: Build beep example - name: Build beep example
@ -103,6 +112,7 @@ jobs:
- name: Install stable - name: Install stable
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
profile: minimal
toolchain: stable toolchain: stable
target: ${{ matrix.version }}-pc-windows-msvc target: ${{ matrix.version }}-pc-windows-msvc
override: true override: true