Fix python script permissions too. #73
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build distribution | |
on: | |
push: | |
branches: [ master ] | |
tags: [ '*' ] | |
env: | |
SHELL: /bin/bash | |
jobs: | |
buildNative: | |
runs-on: ubuntu-latest | |
container: archlinux/archlinux:multilib-devel | |
steps: | |
# Install packages | |
- run: pacman --noconfirm -Sy sbt jdk-openjdk git mingw-w64 clang nasm rustup python3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
default: true | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
target: i686-pc-windows-gnu | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
target: i686-unknown-linux-gnu | |
# Initialize git | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- run: git config --global --add safe.directory /__w/MPPatch/MPPatch | |
- run: git fetch --prune --unshallow --tags | |
# Do the actual build | |
- run: scripts/ci/build-natives_linux.sh | |
# Upload artifacts | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: mppatch_ci_natives-linux.tar.gz | |
path: target/mppatch_ci_natives-linux.tar.gz | |
buildInstallerLinux: | |
runs-on: ubuntu-latest | |
needs: | |
- buildNative | |
steps: | |
# Install packages | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'liberica' | |
java-version: '21' | |
# Initialize git | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- run: git fetch --prune --unshallow --tags | |
# Download artifacts | |
- uses: actions/download-artifact@v3 | |
with: | |
name: mppatch_ci_natives-linux.tar.gz | |
path: target/mppatch_ci_natives-linux | |
- run: mv target/mppatch_ci_natives-linux/* target/ | |
- run: rm -rf target/mppatch_ci_natives-linux | |
# Do the actual build | |
- run: scripts/ci/build-installer_linux.sh | |
# Upload artifacts | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: mppatch_ci_installer-linux.tar.gz | |
path: target/mppatch_ci_installer-linux.tar.gz | |
buildDist: | |
runs-on: ubuntu-20.04 | |
needs: | |
- buildInstallerLinux | |
steps: | |
# Initialize git | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- run: git fetch --prune --unshallow --tags | |
# Download artifacts | |
- uses: actions/download-artifact@v3 | |
with: | |
name: mppatch_ci_installer-linux.tar.gz | |
path: target/mppatch_ci_installer-linux | |
- run: mv target/mppatch_ci_installer-linux/* target/ | |
- run: rm -rf target/mppatch_ci_installer-linux | |
# Do the actual build | |
- run: scripts/ci/build-dist.sh | |
# Upload artifacts | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: mppatch_dist.tar.gz | |
path: mppatch_dist.tar.gz |