Skip to content

Commit

Permalink
add CI for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Predidit committed May 4, 2024
1 parent ca9286d commit f6728dc
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,40 @@
name: outputs
path: |
bilineo_windows_*.zip
build/app/outputs/flutter-apk/bilineo_android_*.apk
build/app/outputs/flutter-apk/bilineo_android_*.apk
flutter-build-linux:
name: "Relase for Linux"
needs: flutter-build
runs-on: "ubuntu-latest"
steps:
- name: Clone repository
uses: actions/checkout@v4
- run: |
$tag = "${{ github.ref }}".Replace('refs/tags/', '')
echo "tag=$(echo $tag)" >> $env:GITHUB_ENV
- run: echo "bilineo_linux_${env:tag}.tar.gz build progress"
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang cmake libgtk-3-dev ninja-build libayatana-appindicator3-dev mpv
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version-file: pubspec.yaml
- run: flutter pub get
- run: flutter build linux
- run: tar -zcvf bilineo_linux_${env:tag}.tar.gz build/linux/x64/release/bundle/*
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
bilineo_linux_*.tar.gz
- name: Upload outputs
uses: actions/upload-artifact@v4
with:
name: outputs-linux
path: |
bilineo_linux_*.tar.gz

0 comments on commit f6728dc

Please sign in to comment.