Get rid of docker in github actions

This commit is contained in:
Inex Code 2020-10-07 01:07:36 +03:00 committed by GitHub
parent 0fbc62fe91
commit eb5fb3813a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,13 +11,22 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: registry.gitlab.com/famedly/containers/flutter-dockerimages:stable
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Get apt deps
run: |
apt-get update > /dev/null
apt-get -y install --no-install-recommends openssl axel lcov gcc g++ ninja-build
- name: Setup Flutter
uses: takuyaohashi/setup-flutter@v1
with:
channel: beta
- name: Check formatting - name: Check formatting
run: flutter format lib/ test/ test_driver/ --set-exit-if-changed run: flutter format lib/ test/ test_driver/ --set-exit-if-changed
- name: Analyze code - name: Analyze code
run: flutter analyze run: flutter analyze
@ -25,13 +34,21 @@ jobs:
build-web: build-web:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: registry.gitlab.com/famedly/containers/flutter-dockerimages:beta
needs: analyze needs: analyze
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Get apt deps
run: |
apt-get update > /dev/null
apt-get -y install --no-install-recommends openssl axel lcov gcc g++ ninja-build
- name: Setup Flutter
uses: takuyaohashi/setup-flutter@v1
with:
channel: beta
- name: Prepare env - name: Prepare env
run: | run: |
sudo apt update sudo apt update
@ -46,24 +63,39 @@ jobs:
cd web/ && unzip sqljs-wasm.zip && cd ../ cd web/ && unzip sqljs-wasm.zip && cd ../
cd web/ && rm sqljs-wasm.zip && cd ../ cd web/ && rm sqljs-wasm.zip && cd ../
flutter clean flutter clean
- name: Configure Flutter
run: flutter config --enable-web && flutter doctor
- run: flutter pub get - run: flutter pub get
- name: Build web release - name: Build web release
run: flutter build web --release --verbose run: flutter build web --release --verbose
build-android-debug: build-android-debug:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: registry.gitlab.com/famedly/containers/flutter-dockerimages:beta
needs: analyze needs: analyze
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Get apt deps
run: |
apt-get update > /dev/null
apt-get -y install --no-install-recommends openssl axel lcov gcc g++ ninja-build
- name: Setup Flutter
uses: takuyaohashi/setup-flutter@v1
with:
channel: beta
- name: Get rid of Firebase - name: Get rid of Firebase
run: truncate -s $(head -n -2 android/app/build.gradle | wc -c) android/app/build.gradle run: truncate -s $(head -n -2 android/app/build.gradle | wc -c) android/app/build.gradle
- name: Build debug apk - name: Build debug apk
run: flutter build apk --debug -v run: flutter build apk --debug -v
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: debug.apk name: debug.apk