From 265940e57d79182078f838f35ff822f366522975 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Sat, 23 Mar 2024 13:53:20 +0000 Subject: [PATCH] chore: remove .github Former-commit-id: fa00c54a216889dcbfa8f05fa0f68c414c9f5bbd Former-commit-id: 2a148c3737c7a107a1367ff7503a7fcd3cd587b2 --- .github/workflows/build.yml | 147 ----------------------------------- .github/workflows/deploy.yml | 39 ---------- 2 files changed, 186 deletions(-) delete mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 2b91094..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,147 +0,0 @@ -name: Build - -on: - workflow_dispatch: - push: - branches: - - master - -jobs: - build-linux: - - runs-on: ubuntu-latest - - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v2 - with: - submodules: recursive - - - name: Install Dependencies - run: | - sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse" - sudo apt-get update -y -qq - sudo apt-get install libsdl2-dev - sudo apt-get install libsdl2-image-dev - - - name: Cache cargo registry - uses: actions/cache@v1 - with: - path: ~/.cargo/registry - key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo index - uses: actions/cache@v1 - with: - path: ~/.cargo/git - key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo build - uses: actions/cache@v1 - with: - path: target - key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} - - - name: Build - run: cargo build --release --manifest-path platform/rustboyadvance-sdl2/Cargo.toml - - - name: Collect artifacts - run: | - mkdir artifacts - mkdir artifacts/assets - cp README.md artifacts - cp LICENSE artifacts - cp ./assets/icon_cropped_small.png artifacts/assets - cp ./target/release/rustboyadvance-sdl2 artifacts - - - name : Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: rustboyadvance-sdl2-x86_64-unknown-linux-gnu - path: artifacts - - build-android-apk: - - runs-on: ubuntu-latest - - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v2 - with: - submodules: recursive - - name: Install toolchains - run: rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android - - - name: Cache cargo registry - uses: actions/cache@v1 - with: - path: ~/.cargo/registry - key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo index - uses: actions/cache@v1 - with: - path: ~/.cargo/git - key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo build - uses: actions/cache@v1 - with: - path: target - key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} - - - name: Build APK - working-directory: ./platform/android - run: ./gradlew assemble - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: rustdroid.apk - path: ./platform/android/app/build/outputs/apk/release/app-release-unsigned.apk - - - - build-windows-64: - - runs-on: windows-2019 - - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v2 - with: - submodules: recursive - - - run: rustup target add x86_64-pc-windows-msvc - - - name: Cache cargo registry - uses: actions/cache@v1 - with: - path: ~/.cargo/registry - key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo index - uses: actions/cache@v1 - with: - path: ~/.cargo/git - key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo build - uses: actions/cache@v1 - with: - path: target - key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} - - - name: Build - run: cargo build --target x86_64-pc-windows-msvc --release --manifest-path .\platform\rustboyadvance-sdl2\Cargo.toml - - - name: Collect artifacts - run: | - mkdir artifacts - mkdir artifacts\assets - copy README.md artifacts - copy LICENSE artifacts - copy .\assets\icon_cropped_small.png artifacts\assets - copy .\target\x86_64-pc-windows-msvc\release\rustboyadvance-sdl2.exe artifacts - copy .\platform\rustboyadvance-sdl2\msvc\64\*.dll artifacts - copy .\platform\rustboyadvance-sdl2\msvc\64\LICENSE.* artifacts - - - name : Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: rustboyadvance-sdl2-x86_64-pc-windows-msvc - path: artifacts - diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 1695a2b..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Deploy - -on: - push: - branches: - - master - -jobs: - deploy-web-app: - runs-on: ubuntu-latest - - steps: - - name: Checkout 🛎️ - uses: actions/checkout@master - - - name: Setup Node.js - uses: actions/setup-node@v1 - - - name: Setup wasm-pack - run: | - curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f - - - name: Build rustboyadvance-wasm - run: | - wasm-pack build platform/rustboyadvance-wasm --release -- --features "wee_alloc" - - - name: Build WebApp - run: | - cd ./platform/rustboyadvance-wasm/app - npm install - npm run build - - - name: "Deploy 🚀" - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: '${{ secrets.ACCESS_TOKEN }}' - publish_branch: gh-pages - publish_dir: ./platform/rustboyadvance-wasm/app/dist - keep_files: false