box: ubuntu

build:
    steps:
        - script:
            name: install-dependencies
            code: sudo apt-get clean && sudo apt-get update && sudo apt-get install -y build-essential pkgconf libasound2-dev libgl1-mesa-dev libx11-dev libudev-dev git
        - script:
            name: gcc-version
            code: gcc --version
        - script:
            name: flycast x64 build
            code: make -C shell/linux platform=x64
        - script:
            name: package app
            code: |
              mkdir s3
              pushd shell/linux
              mv -f nosym-reicast.elf flycast
              gzip flycast
              popd
              mv shell/linux/flycast.gz s3
        - s3sync:
            source_dir: s3
            delete-removed: false
            bucket-url: s3://flycast-builds/linux/heads/$WERCKER_GIT_BRANCH-$WERCKER_GIT_COMMIT/
            key-id: AKIAJOZQS4H2PHQWYFCA
            key-secret: $S3_SECRET_KEY
