name: Futurerestore on: push: pull_request: workflow_dispatch: jobs: mac-x86_64: runs-on: macos-latest steps: - name: Checkout uses: actions/checkout@v2 with: submodules: 'true' fetch-depth: 0 - name: macOS x86_64 Build id: mac-x86_64 run: | cd /Users/runner/work/futurerestore/futurerestore/.github/workflows curl -sO https://mac.cryptiiiic.com/CI-Scripts/futurerestore-mac-x86_64.sh chmod +x futurerestore-mac-x86_64.sh if [[ "$(file futurerestore-mac-x86_64.sh)" == "futurerestore-mac-x86_64.sh: a /usr/bin/env zsh script text executable, ASCII text" ]]; then ./futurerestore-mac-x86_64.sh; else ./mac-x86_64.sh; fi - name: Archive id: archive uses: actions/upload-artifact@v2 with: name: futurerestore-macOS-x86_64 path: | /Users/runner/work/futurerestore/futurerestore/.github/workflows/futurerestore-*.tar.xz mac-arm64: runs-on: macos-latest steps: - name: Checkout uses: actions/checkout@v2 with: submodules: 'true' fetch-depth: 0 - name: macOS arm64 Build id: mac-arm64 run: | cd /Users/runner/work/futurerestore/futurerestore/.github/workflows curl -sO https://mac.cryptiiiic.com/CI-Scripts/futurerestore-mac-arm64.sh chmod +x futurerestore-mac-arm64.sh if [[ "$(file futurerestore-mac-x86_64.sh)" == "futurerestore-mac-arm64.sh: a /usr/bin/env zsh script text executable, ASCII text" ]]; then ./futurerestore-mac-arm64.sh; else ./mac-arm64.sh; fi - name: Archive id: archive uses: actions/upload-artifact@v2 with: name: futurerestore-macOS-arm64 path: | /Users/runner/work/futurerestore/futurerestore/.github/workflows/futurerestore-*.tar.xz linux: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 with: submodules: 'true' fetch-depth: 0 - name: Linux Build id: linux uses: addnab/docker-run-action@v3 with: image: debian:buster-slim options: -v ${{ github.workspace }}/..:/tmp/build/ run: | /tmp/build/futurerestore/.github/workflows/linux.sh - name: Linux Copy run: | export FUTURERESTORE_VERSION_RELEASE=$(cat /home/runner/work/futurerestore/futurerestore/version.txt | tr -d '\n') docker cp $(docker ps -ql):/tmp/build/futurerestore-${FUTURERESTORE_VERSION_RELEASE}-linux.tar.xz /home/runner/work/futurerestore/futurerestore/.github/workflows/ - name: Archive id: archive uses: actions/upload-artifact@v2 with: name: futurerestore-linux path: | /home/runner/work/futurerestore/futurerestore/.github/workflows/futurerestore-*.tar.xz