diff --git a/.github/workflows/autocompiler.yml b/.github/workflows/autocompiler.yml deleted file mode 100644 index f159354c..00000000 --- a/.github/workflows/autocompiler.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: Compile test - -on: [push] - -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: Release - -jobs: - build: - runs-on: ubuntu-latest - env: - CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - - - name: install dependencies - run: | - sudo apt install -y ruby-dev - sudo gem install fpm - - - name: create installer - run: | - sudo apt update - sudo apt install -y build-essential tree - ls - make - ls - # mkdir ../temp - # mkdir ../temp2 - # cp -r packagedir/* ../temp2 - # rm -Rf packagedir - # mv * ../temp - # mkdir -p packagedir/opt/rtl8812au/ - # mv ../temp/* packagedir/opt/rtl8812au - # mv ../temp2/* packagedir/ - # fpm -a arm64 -s dir -t deb -n rtl8812au-autocompiler -v 2.3.4-$(date '+%m%d%H%M') -C ./packagedir/ -p rtl8812au-autocompiler.deb --after-install packagedir/opt/rtl8812au/after-install.sh - # ls -a - - - - name: Upload to Github - uses: 'actions/upload-artifact@v2' - with: - name: "rtl8812au-autocompiler" - path: | - *.deb - - - name: Push - id: push - uses: cloudsmith-io/action@master - with: - api-key: ${{ secrets.CLOUDSMITH_API_KEY }} - command: "push" - format: "deb" - owner: "openhd" - repo: "release" - distro: "any-distro" - release: "any-version" - republish: "true" # needed ONLY if version is not changing - file: "*.deb" diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml new file mode 100644 index 00000000..87d8fe5e --- /dev/null +++ b/.github/workflows/build_test.yml @@ -0,0 +1,29 @@ +name: Build test + +on: [push] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +jobs: + build: + runs-on: ubuntu-latest + env: + CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + + - name: install dependencies + run: | + sudo apt install -y ruby-dev + sudo gem install fpm + + - name: build on x86 + run: | + sudo apt update + sudo apt install -y build-essential tree + make + ls \ No newline at end of file