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
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Rust with Alpine
|
||||
run: |
|
||||
docker run --rm \
|
||||
-v ${{ github.workspace }}:/usr/src/myapp \
|
||||
-w /usr/src/myapp \
|
||||
rust:alpine \
|
||||
sh -c "apk add --no-cache musl-dev && cargo build --release"
|
||||
- name: Set up Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
override: true
|
||||
components: rustfmt
|
||||
|
||||
- name: Build in Release Mode
|
||||
run: cargo build --release
|
||||
|
||||
- name: Run Tests
|
||||
run: |
|
||||
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"
|
||||
run: cargo test --release
|
||||
|
||||
- name: Package Artifacts
|
||||
run: |
|
||||
mkdir -p artifacts
|
||||
cp target/release/your_executable artifacts/
|
||||
cp target/release/wololo artifacts/
|
||||
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue