fix: retention days and back to ubuntu runner #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: build-deps | |
run: sudo apt-get -y install libfuse-dev | |
- name: make | |
run: make | |
- name: copy-binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: adbfs-bin | |
retention-days: 5 | |
path: | | |
./adbfs | |
test: | |
needs: build | |
runs-on: ubuntu-18.04 | |
container: | |
image: budtmo/docker-android-x86-10.0 | |
options: --privileged | |
steps: | |
- uses: actions/checkout@v2 | |
- name: prepare | |
run: apt-get update && apt-get install -y fuse libfuse-dev | |
- name: get-adbfs-binary | |
uses: actions/download-artifact@v3 | |
with: | |
name: adbfs-bin | |
- name: run-tests | |
run: ./docker/run-docker-test.sh |