Skip to content

Commit

Permalink
remove unnecessary stuff for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Oppzippy committed Oct 17, 2023
1 parent 471bde1 commit 399ae61
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 319 deletions.
89 changes: 0 additions & 89 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,70 +3,7 @@ name: "build"
on:
workflow_dispatch:

env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

jobs:
build_linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libdbus-1-dev pkg-config libgtk-4-dev libadwaita-1-dev gettext libfuse2
- name: Install cargo-make
run: cargo install cargo-make
- name: Install appimage-builder
run: |
curl --location -o appimage-builder https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage
chmod +x appimage-builder
sudo mv appimage-builder /usr/bin/
- name: Build cli
run: cargo build --release --package openscq30_cli
- name: Build AppImage
working-directory: ./packaging/appimage
run: appimage-builder --skip-tests

- name: Move to artifacts directory
run: |
mkdir artifacts
mv target/release/openscq30_cli artifacts/openscq30_cli-linux-x86_64
mv packaging/appimage/openscq30_gui-*.AppImage* artifacts/
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: linux
path: artifacts/*

build_macos:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: dtolnay/rust-toolchain@stable
- run: brew install gtk4 libadwaita

- name: Build gui
run: cargo build --release --package openscq30_gui
- name: Build cli
run: cargo build --release --package openscq30_cli
- name: Move to artifacts directory
run: |
mkdir artifacts
mv target/release/openscq30_cli artifacts/openscq30_cli-macos-x86_64
mv target/release/openscq30_gui artifacts/openscq30_gui-macos-x86_64
- name: Upload gui
uses: actions/upload-artifact@v3
with:
name: macos
path: artifacts/*

build_windows_gui:
runs-on: windows-2022
steps:
Expand Down Expand Up @@ -122,29 +59,3 @@ jobs:
with:
name: windows-cli
path: artifacts/*

build_android:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: dtolnay/rust-toolchain@stable
with:
targets: armv7-linux-androideabi,aarch64-linux-android,i686-linux-android,x86_64-linux-android
- uses: actions/setup-java@v3
with:
distribution: temurin # See 'Supported distributions' for available options
java-version: 17
- name: Install cargo-ndk
run: cargo install cargo-ndk
- name: Build
run: ./gradlew --no-daemon assembleBluetoothRelease
working-directory: android
- name: Rename apk
run: mv android/app/build/outputs/apk/bluetooth/release/app-bluetooth-release-unsigned.apk openscq30_android.apk
- name: Upload apk
uses: actions/upload-artifact@v3
with:
name: android
path: openscq30_android.apk
38 changes: 0 additions & 38 deletions .github/workflows/lint.yml

This file was deleted.

89 changes: 0 additions & 89 deletions .github/workflows/test.yml

This file was deleted.

103 changes: 0 additions & 103 deletions .github/workflows/web.yml

This file was deleted.

0 comments on commit 399ae61

Please sign in to comment.