Update .github/workflows/test.yml
Some checks failed
Compile Rust Code on Release / build (push) Failing after 17s
Some checks failed
Compile Rust Code on Release / build (push) Failing after 17s
This commit is contained in:
parent
14ddbfaaaa
commit
bc7dfa1cef
1 changed files with 11 additions and 14 deletions
25
.github/workflows/test.yml
vendored
25
.github/workflows/test.yml
vendored
|
|
@ -10,26 +10,23 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Rust with Alpine
|
- name: Set up Rust
|
||||||
run: |
|
uses: actions-rs/toolchain@v1
|
||||||
docker run --rm \
|
with:
|
||||||
-v ${{ github.workspace }}:/usr/src/myapp \
|
toolchain: stable
|
||||||
-w /usr/src/myapp \
|
override: true
|
||||||
rust:alpine \
|
components: rustfmt
|
||||||
sh -c "apk add --no-cache musl-dev && cargo build --release"
|
|
||||||
|
- name: Build in Release Mode
|
||||||
|
run: cargo build --release
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: |
|
run: cargo test --release
|
||||||
docker run --rm \
|
|
||||||
-v ${{ github.workspace }}:/usr/src/myapp \
|
|
||||||
-w /usr/src/myapp \
|
|
||||||
rust:alpine \
|
|
||||||
sh -c "apk add --no-cache musl-dev && cargo test --release"
|
|
||||||
|
|
||||||
- name: Package Artifacts
|
- name: Package Artifacts
|
||||||
run: |
|
run: |
|
||||||
mkdir -p artifacts
|
mkdir -p artifacts
|
||||||
cp target/release/your_executable artifacts/
|
cp target/release/wololo artifacts/
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue