diff --git a/.github/workflows/gen_alpine3.12.yml b/.github/workflows/gen_alpine3.12.yml new file mode 100644 index 000000000..96730c2c3 --- /dev/null +++ b/.github/workflows/gen_alpine3.12.yml @@ -0,0 +1,84 @@ +name: alpine3.12 + +on: + pull_request: + branches: + - main + paths-ignore: + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/workflows/verify-pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" + +jobs: + build: + runs-on: "ubuntu-latest" + container: "alpine:3.12" + env: + RUSTFLAGS: "-C target-feature=-crt-static" + + steps: + - name: "Upgrade system" + shell: sh + run: "apk upgrade --update-cache" + - name: "Install CI dependencies" + shell: sh + run: "apk add nodejs zstd wget bash" + - name: "Allow root login" + shell: bash + run: "sed 's/root:!/root:*/g' -i /etc/shadow" + - name: "Install git" + shell: bash + run: "apk add git" + - name: "Install curl" + shell: bash + run: "apk add curl" + - name: "Install openssh" + shell: bash + run: "apk add openssh" + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + with: + submodules: "recursive" + - name: "Install Rust" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: "alpine3.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload artifact" + uses: actions/upload-artifact@v3 + with: + name: "alpine3.12" + path: "~/packages/x86_64/wezterm-*.apk" diff --git a/.github/workflows/gen_alpine3.12_continuous.yml b/.github/workflows/gen_alpine3.12_continuous.yml new file mode 100644 index 000000000..4b13d14d4 --- /dev/null +++ b/.github/workflows/gen_alpine3.12_continuous.yml @@ -0,0 +1,108 @@ +name: alpine3.12_continuous + +on: + schedule: + - cron: "10 3 * * *" + push: + branches: + - main + paths-ignore: + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/workflows/verify-pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" + +jobs: + build: + runs-on: "ubuntu-latest" + container: "alpine:3.12" + env: + RUSTFLAGS: "-C target-feature=-crt-static" + BUILD_REASON: "Schedule" + + steps: + - name: "Upgrade system" + shell: sh + run: "apk upgrade --update-cache" + - name: "Install CI dependencies" + shell: sh + run: "apk add nodejs zstd wget bash" + - name: "Allow root login" + shell: bash + run: "sed 's/root:!/root:*/g' -i /etc/shadow" + - name: "Install git" + shell: bash + run: "apk add git" + - name: "Install curl" + shell: bash + run: "apk add curl" + - name: "Install openssh" + shell: bash + run: "apk add openssh" + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + with: + submodules: "recursive" + - name: "Install Rust" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: "alpine3.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload artifact" + uses: actions/upload-artifact@v3 + with: + name: "alpine3.12" + path: "~/packages/x86_64/wezterm-*.apk" + retention-days: 5 + + upload: + runs-on: ubuntu-latest + needs: build + + steps: + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + - name: "Download artifact" + uses: actions/download-artifact@v3 + with: + name: "alpine3.12" + - name: "Upload to Nightly Release" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: "bash ci/retry.sh gh release upload --clobber nightly ~/packages/x86_64/wezterm-*.apk" diff --git a/.github/workflows/gen_alpine3.12_tag.yml b/.github/workflows/gen_alpine3.12_tag.yml new file mode 100644 index 000000000..222723819 --- /dev/null +++ b/.github/workflows/gen_alpine3.12_tag.yml @@ -0,0 +1,102 @@ +name: alpine3.12_tag + +on: + push: + tags: + - "20*" + +jobs: + build: + runs-on: "ubuntu-latest" + container: "alpine:3.12" + env: + RUSTFLAGS: "-C target-feature=-crt-static" + BUILD_REASON: "Schedule" + + steps: + - name: "Upgrade system" + shell: sh + run: "apk upgrade --update-cache" + - name: "Install CI dependencies" + shell: sh + run: "apk add nodejs zstd wget bash" + - name: "Allow root login" + shell: bash + run: "sed 's/root:!/root:*/g' -i /etc/shadow" + - name: "Install git" + shell: bash + run: "apk add git" + - name: "Install curl" + shell: bash + run: "apk add curl" + - name: "Install openssh" + shell: bash + run: "apk add openssh" + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + with: + submodules: "recursive" + - name: "Install Rust" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: "alpine3.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload artifact" + uses: actions/upload-artifact@v3 + with: + name: "alpine3.12" + path: | + ~/packages/x86_64/wezterm-*.apk + ~/.abuild/*.pub + + upload: + runs-on: ubuntu-latest + needs: build + + steps: + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + - name: "Download artifact" + uses: actions/download-artifact@v3 + with: + name: "alpine3.12" + - name: "Create pre-release" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)" + - name: "Upload to Tagged Release" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) ~/packages/x86_64/wezterm-*.apk ~/.abuild/*.pub" diff --git a/.github/workflows/gen_alpine3.13.yml b/.github/workflows/gen_alpine3.13.yml new file mode 100644 index 000000000..d3460faa5 --- /dev/null +++ b/.github/workflows/gen_alpine3.13.yml @@ -0,0 +1,84 @@ +name: alpine3.13 + +on: + pull_request: + branches: + - main + paths-ignore: + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/workflows/verify-pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" + +jobs: + build: + runs-on: "ubuntu-latest" + container: "alpine:3.13" + env: + RUSTFLAGS: "-C target-feature=-crt-static" + + steps: + - name: "Upgrade system" + shell: sh + run: "apk upgrade --update-cache" + - name: "Install CI dependencies" + shell: sh + run: "apk add nodejs zstd wget bash" + - name: "Allow root login" + shell: bash + run: "sed 's/root:!/root:*/g' -i /etc/shadow" + - name: "Install git" + shell: bash + run: "apk add git" + - name: "Install curl" + shell: bash + run: "apk add curl" + - name: "Install openssh" + shell: bash + run: "apk add openssh" + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + with: + submodules: "recursive" + - name: "Install Rust" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: "alpine3.13-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload artifact" + uses: actions/upload-artifact@v3 + with: + name: "alpine3.13" + path: "~/packages/x86_64/wezterm-*.apk" diff --git a/.github/workflows/gen_alpine3.13_continuous.yml b/.github/workflows/gen_alpine3.13_continuous.yml new file mode 100644 index 000000000..05927b8f2 --- /dev/null +++ b/.github/workflows/gen_alpine3.13_continuous.yml @@ -0,0 +1,108 @@ +name: alpine3.13_continuous + +on: + schedule: + - cron: "10 3 * * *" + push: + branches: + - main + paths-ignore: + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/workflows/verify-pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" + +jobs: + build: + runs-on: "ubuntu-latest" + container: "alpine:3.13" + env: + RUSTFLAGS: "-C target-feature=-crt-static" + BUILD_REASON: "Schedule" + + steps: + - name: "Upgrade system" + shell: sh + run: "apk upgrade --update-cache" + - name: "Install CI dependencies" + shell: sh + run: "apk add nodejs zstd wget bash" + - name: "Allow root login" + shell: bash + run: "sed 's/root:!/root:*/g' -i /etc/shadow" + - name: "Install git" + shell: bash + run: "apk add git" + - name: "Install curl" + shell: bash + run: "apk add curl" + - name: "Install openssh" + shell: bash + run: "apk add openssh" + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + with: + submodules: "recursive" + - name: "Install Rust" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: "alpine3.13-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload artifact" + uses: actions/upload-artifact@v3 + with: + name: "alpine3.13" + path: "~/packages/x86_64/wezterm-*.apk" + retention-days: 5 + + upload: + runs-on: ubuntu-latest + needs: build + + steps: + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + - name: "Download artifact" + uses: actions/download-artifact@v3 + with: + name: "alpine3.13" + - name: "Upload to Nightly Release" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: "bash ci/retry.sh gh release upload --clobber nightly ~/packages/x86_64/wezterm-*.apk" diff --git a/.github/workflows/gen_alpine3.13_tag.yml b/.github/workflows/gen_alpine3.13_tag.yml new file mode 100644 index 000000000..4add20f0f --- /dev/null +++ b/.github/workflows/gen_alpine3.13_tag.yml @@ -0,0 +1,102 @@ +name: alpine3.13_tag + +on: + push: + tags: + - "20*" + +jobs: + build: + runs-on: "ubuntu-latest" + container: "alpine:3.13" + env: + RUSTFLAGS: "-C target-feature=-crt-static" + BUILD_REASON: "Schedule" + + steps: + - name: "Upgrade system" + shell: sh + run: "apk upgrade --update-cache" + - name: "Install CI dependencies" + shell: sh + run: "apk add nodejs zstd wget bash" + - name: "Allow root login" + shell: bash + run: "sed 's/root:!/root:*/g' -i /etc/shadow" + - name: "Install git" + shell: bash + run: "apk add git" + - name: "Install curl" + shell: bash + run: "apk add curl" + - name: "Install openssh" + shell: bash + run: "apk add openssh" + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + with: + submodules: "recursive" + - name: "Install Rust" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: "alpine3.13-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload artifact" + uses: actions/upload-artifact@v3 + with: + name: "alpine3.13" + path: | + ~/packages/x86_64/wezterm-*.apk + ~/.abuild/*.pub + + upload: + runs-on: ubuntu-latest + needs: build + + steps: + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + - name: "Download artifact" + uses: actions/download-artifact@v3 + with: + name: "alpine3.13" + - name: "Create pre-release" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)" + - name: "Upload to Tagged Release" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) ~/packages/x86_64/wezterm-*.apk ~/.abuild/*.pub" diff --git a/.github/workflows/gen_alpine3.14.yml b/.github/workflows/gen_alpine3.14.yml new file mode 100644 index 000000000..ce2b0e615 --- /dev/null +++ b/.github/workflows/gen_alpine3.14.yml @@ -0,0 +1,84 @@ +name: alpine3.14 + +on: + pull_request: + branches: + - main + paths-ignore: + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/workflows/verify-pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" + +jobs: + build: + runs-on: "ubuntu-latest" + container: "alpine:3.14" + env: + RUSTFLAGS: "-C target-feature=-crt-static" + + steps: + - name: "Upgrade system" + shell: sh + run: "apk upgrade --update-cache" + - name: "Install CI dependencies" + shell: sh + run: "apk add nodejs zstd wget bash" + - name: "Allow root login" + shell: bash + run: "sed 's/root:!/root:*/g' -i /etc/shadow" + - name: "Install git" + shell: bash + run: "apk add git" + - name: "Install curl" + shell: bash + run: "apk add curl" + - name: "Install openssh" + shell: bash + run: "apk add openssh" + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + with: + submodules: "recursive" + - name: "Install Rust" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: "alpine3.14-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload artifact" + uses: actions/upload-artifact@v3 + with: + name: "alpine3.14" + path: "~/packages/x86_64/wezterm-*.apk" diff --git a/.github/workflows/gen_alpine3.14_continuous.yml b/.github/workflows/gen_alpine3.14_continuous.yml new file mode 100644 index 000000000..97faf53ae --- /dev/null +++ b/.github/workflows/gen_alpine3.14_continuous.yml @@ -0,0 +1,108 @@ +name: alpine3.14_continuous + +on: + schedule: + - cron: "10 3 * * *" + push: + branches: + - main + paths-ignore: + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/workflows/verify-pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" + +jobs: + build: + runs-on: "ubuntu-latest" + container: "alpine:3.14" + env: + RUSTFLAGS: "-C target-feature=-crt-static" + BUILD_REASON: "Schedule" + + steps: + - name: "Upgrade system" + shell: sh + run: "apk upgrade --update-cache" + - name: "Install CI dependencies" + shell: sh + run: "apk add nodejs zstd wget bash" + - name: "Allow root login" + shell: bash + run: "sed 's/root:!/root:*/g' -i /etc/shadow" + - name: "Install git" + shell: bash + run: "apk add git" + - name: "Install curl" + shell: bash + run: "apk add curl" + - name: "Install openssh" + shell: bash + run: "apk add openssh" + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + with: + submodules: "recursive" + - name: "Install Rust" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: "alpine3.14-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload artifact" + uses: actions/upload-artifact@v3 + with: + name: "alpine3.14" + path: "~/packages/x86_64/wezterm-*.apk" + retention-days: 5 + + upload: + runs-on: ubuntu-latest + needs: build + + steps: + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + - name: "Download artifact" + uses: actions/download-artifact@v3 + with: + name: "alpine3.14" + - name: "Upload to Nightly Release" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: "bash ci/retry.sh gh release upload --clobber nightly ~/packages/x86_64/wezterm-*.apk" diff --git a/.github/workflows/gen_alpine3.14_tag.yml b/.github/workflows/gen_alpine3.14_tag.yml new file mode 100644 index 000000000..ccb9515e0 --- /dev/null +++ b/.github/workflows/gen_alpine3.14_tag.yml @@ -0,0 +1,102 @@ +name: alpine3.14_tag + +on: + push: + tags: + - "20*" + +jobs: + build: + runs-on: "ubuntu-latest" + container: "alpine:3.14" + env: + RUSTFLAGS: "-C target-feature=-crt-static" + BUILD_REASON: "Schedule" + + steps: + - name: "Upgrade system" + shell: sh + run: "apk upgrade --update-cache" + - name: "Install CI dependencies" + shell: sh + run: "apk add nodejs zstd wget bash" + - name: "Allow root login" + shell: bash + run: "sed 's/root:!/root:*/g' -i /etc/shadow" + - name: "Install git" + shell: bash + run: "apk add git" + - name: "Install curl" + shell: bash + run: "apk add curl" + - name: "Install openssh" + shell: bash + run: "apk add openssh" + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + with: + submodules: "recursive" + - name: "Install Rust" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: "alpine3.14-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload artifact" + uses: actions/upload-artifact@v3 + with: + name: "alpine3.14" + path: | + ~/packages/x86_64/wezterm-*.apk + ~/.abuild/*.pub + + upload: + runs-on: ubuntu-latest + needs: build + + steps: + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + - name: "Download artifact" + uses: actions/download-artifact@v3 + with: + name: "alpine3.14" + - name: "Create pre-release" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)" + - name: "Upload to Tagged Release" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) ~/packages/x86_64/wezterm-*.apk ~/.abuild/*.pub" diff --git a/.github/workflows/gen_alpine3.15.yml b/.github/workflows/gen_alpine3.15.yml new file mode 100644 index 000000000..52cb79a64 --- /dev/null +++ b/.github/workflows/gen_alpine3.15.yml @@ -0,0 +1,84 @@ +name: alpine3.15 + +on: + pull_request: + branches: + - main + paths-ignore: + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/workflows/verify-pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" + +jobs: + build: + runs-on: "ubuntu-latest" + container: "alpine:3.15" + env: + RUSTFLAGS: "-C target-feature=-crt-static" + + steps: + - name: "Upgrade system" + shell: sh + run: "apk upgrade --update-cache" + - name: "Install CI dependencies" + shell: sh + run: "apk add nodejs zstd wget bash" + - name: "Allow root login" + shell: bash + run: "sed 's/root:!/root:*/g' -i /etc/shadow" + - name: "Install git" + shell: bash + run: "apk add git" + - name: "Install curl" + shell: bash + run: "apk add curl" + - name: "Install openssh" + shell: bash + run: "apk add openssh" + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + with: + submodules: "recursive" + - name: "Install Rust" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: "alpine3.15-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload artifact" + uses: actions/upload-artifact@v3 + with: + name: "alpine3.15" + path: "~/packages/x86_64/wezterm-*.apk" diff --git a/.github/workflows/gen_alpine3.15_continuous.yml b/.github/workflows/gen_alpine3.15_continuous.yml new file mode 100644 index 000000000..25ccb8514 --- /dev/null +++ b/.github/workflows/gen_alpine3.15_continuous.yml @@ -0,0 +1,108 @@ +name: alpine3.15_continuous + +on: + schedule: + - cron: "10 3 * * *" + push: + branches: + - main + paths-ignore: + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/workflows/verify-pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" + +jobs: + build: + runs-on: "ubuntu-latest" + container: "alpine:3.15" + env: + RUSTFLAGS: "-C target-feature=-crt-static" + BUILD_REASON: "Schedule" + + steps: + - name: "Upgrade system" + shell: sh + run: "apk upgrade --update-cache" + - name: "Install CI dependencies" + shell: sh + run: "apk add nodejs zstd wget bash" + - name: "Allow root login" + shell: bash + run: "sed 's/root:!/root:*/g' -i /etc/shadow" + - name: "Install git" + shell: bash + run: "apk add git" + - name: "Install curl" + shell: bash + run: "apk add curl" + - name: "Install openssh" + shell: bash + run: "apk add openssh" + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + with: + submodules: "recursive" + - name: "Install Rust" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: "alpine3.15-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload artifact" + uses: actions/upload-artifact@v3 + with: + name: "alpine3.15" + path: "~/packages/x86_64/wezterm-*.apk" + retention-days: 5 + + upload: + runs-on: ubuntu-latest + needs: build + + steps: + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + - name: "Download artifact" + uses: actions/download-artifact@v3 + with: + name: "alpine3.15" + - name: "Upload to Nightly Release" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: "bash ci/retry.sh gh release upload --clobber nightly ~/packages/x86_64/wezterm-*.apk" diff --git a/.github/workflows/gen_alpine3.15_tag.yml b/.github/workflows/gen_alpine3.15_tag.yml new file mode 100644 index 000000000..5299028f7 --- /dev/null +++ b/.github/workflows/gen_alpine3.15_tag.yml @@ -0,0 +1,102 @@ +name: alpine3.15_tag + +on: + push: + tags: + - "20*" + +jobs: + build: + runs-on: "ubuntu-latest" + container: "alpine:3.15" + env: + RUSTFLAGS: "-C target-feature=-crt-static" + BUILD_REASON: "Schedule" + + steps: + - name: "Upgrade system" + shell: sh + run: "apk upgrade --update-cache" + - name: "Install CI dependencies" + shell: sh + run: "apk add nodejs zstd wget bash" + - name: "Allow root login" + shell: bash + run: "sed 's/root:!/root:*/g' -i /etc/shadow" + - name: "Install git" + shell: bash + run: "apk add git" + - name: "Install curl" + shell: bash + run: "apk add curl" + - name: "Install openssh" + shell: bash + run: "apk add openssh" + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + with: + submodules: "recursive" + - name: "Install Rust" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: "alpine3.15-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload artifact" + uses: actions/upload-artifact@v3 + with: + name: "alpine3.15" + path: | + ~/packages/x86_64/wezterm-*.apk + ~/.abuild/*.pub + + upload: + runs-on: ubuntu-latest + needs: build + + steps: + - name: "Workaround git permissions issue" + shell: bash + run: "git config --global --add safe.directory /__w/wezterm/wezterm" + - name: "checkout repo" + uses: actions/checkout@v3 + - name: "Download artifact" + uses: actions/download-artifact@v3 + with: + name: "alpine3.15" + - name: "Create pre-release" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)" + - name: "Upload to Tagged Release" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) ~/packages/x86_64/wezterm-*.apk ~/.abuild/*.pub" diff --git a/.github/workflows/gen_centos8.yml b/.github/workflows/gen_centos8.yml index 832d00b4e..5b9b22c00 100644 --- a/.github/workflows/gen_centos8.yml +++ b/.github/workflows/gen_centos8.yml @@ -19,6 +19,7 @@ jobs: build: runs-on: "ubuntu-latest" container: "quay.io/centos/centos:stream8" + steps: - name: "Install config manager" shell: bash diff --git a/.github/workflows/gen_centos8_continuous.yml b/.github/workflows/gen_centos8_continuous.yml index 7d0024fab..4d9a429d5 100644 --- a/.github/workflows/gen_centos8_continuous.yml +++ b/.github/workflows/gen_centos8_continuous.yml @@ -21,42 +21,31 @@ jobs: build: runs-on: "ubuntu-latest" container: "quay.io/centos/centos:stream8" + env: + BUILD_REASON: "Schedule" + steps: - name: "Install config manager" shell: bash - run: | - export BUILD_REASON=Schedule - dnf install -y 'dnf-command(config-manager)' + run: "dnf install -y 'dnf-command(config-manager)'" - name: "Enable PowerTools" shell: bash - run: | - export BUILD_REASON=Schedule - dnf config-manager --set-enabled powertools + run: "dnf config-manager --set-enabled powertools" - name: "Install git" shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y git + run: "yum install -y git" - name: "Install curl" shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y curl + run: "yum install -y curl" - name: "Ensure /run/sshd exists" shell: bash - run: | - export BUILD_REASON=Schedule - mkdir -p /run/sshd + run: "mkdir -p /run/sshd" - name: "Install openssh-server" shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y openssh-server + run: "yum install -y openssh-server" - name: "Workaround git permissions issue" shell: bash - run: | - export BUILD_REASON=Schedule - git config --global --add safe.directory /__w/wezterm/wezterm + run: "git config --global --add safe.directory /__w/wezterm/wezterm" - name: "checkout repo" uses: actions/checkout@v3 with: @@ -80,29 +69,19 @@ jobs: key: "centos8-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - name: "Install System Deps" shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps + run: "env PATH=$PATH ./get-deps" - name: "Build (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release + run: "cargo build --all --release" - name: "Test (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release + run: "cargo test --all --release" - name: "Package" shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh + run: "bash ci/deploy.sh" - name: "Move RPM" shell: bash - run: | - export BUILD_REASON=Schedule - mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos8.rpm + run: "mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos8.rpm" - name: "Upload artifact" uses: actions/upload-artifact@v3 with: @@ -113,6 +92,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_centos8_tag.yml b/.github/workflows/gen_centos8_tag.yml index 9b20ac924..beead8fb0 100644 --- a/.github/workflows/gen_centos8_tag.yml +++ b/.github/workflows/gen_centos8_tag.yml @@ -9,6 +9,9 @@ jobs: build: runs-on: "ubuntu-latest" container: "quay.io/centos/centos:stream8" + env: + BUILD_REASON: "Schedule" + steps: - name: "Install config manager" shell: bash @@ -76,6 +79,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_centos9.yml b/.github/workflows/gen_centos9.yml index 9d72d8365..eb04ffb59 100644 --- a/.github/workflows/gen_centos9.yml +++ b/.github/workflows/gen_centos9.yml @@ -19,6 +19,7 @@ jobs: build: runs-on: "ubuntu-latest" container: "quay.io/centos/centos:stream9" + steps: - name: "Install config manager" shell: bash diff --git a/.github/workflows/gen_centos9_continuous.yml b/.github/workflows/gen_centos9_continuous.yml index 12bb3b5f7..0b06229fd 100644 --- a/.github/workflows/gen_centos9_continuous.yml +++ b/.github/workflows/gen_centos9_continuous.yml @@ -21,42 +21,31 @@ jobs: build: runs-on: "ubuntu-latest" container: "quay.io/centos/centos:stream9" + env: + BUILD_REASON: "Schedule" + steps: - name: "Install config manager" shell: bash - run: | - export BUILD_REASON=Schedule - dnf install -y 'dnf-command(config-manager)' + run: "dnf install -y 'dnf-command(config-manager)'" - name: "Enable CRB repo for X bits" shell: bash - run: | - export BUILD_REASON=Schedule - dnf config-manager --set-enabled crb + run: "dnf config-manager --set-enabled crb" - name: "Install git" shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y git + run: "yum install -y git" - name: "Install curl-minimal" shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y curl-minimal + run: "yum install -y curl-minimal" - name: "Ensure /run/sshd exists" shell: bash - run: | - export BUILD_REASON=Schedule - mkdir -p /run/sshd + run: "mkdir -p /run/sshd" - name: "Install openssh-server" shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y openssh-server + run: "yum install -y openssh-server" - name: "Workaround git permissions issue" shell: bash - run: | - export BUILD_REASON=Schedule - git config --global --add safe.directory /__w/wezterm/wezterm + run: "git config --global --add safe.directory /__w/wezterm/wezterm" - name: "checkout repo" uses: actions/checkout@v3 with: @@ -80,29 +69,19 @@ jobs: key: "centos9-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - name: "Install System Deps" shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps + run: "env PATH=$PATH ./get-deps" - name: "Build (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release + run: "cargo build --all --release" - name: "Test (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release + run: "cargo test --all --release" - name: "Package" shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh + run: "bash ci/deploy.sh" - name: "Move RPM" shell: bash - run: | - export BUILD_REASON=Schedule - mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos9.rpm + run: "mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos9.rpm" - name: "Upload artifact" uses: actions/upload-artifact@v3 with: @@ -113,6 +92,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_centos9_tag.yml b/.github/workflows/gen_centos9_tag.yml index 7b34a53c7..528c2f3dc 100644 --- a/.github/workflows/gen_centos9_tag.yml +++ b/.github/workflows/gen_centos9_tag.yml @@ -9,6 +9,9 @@ jobs: build: runs-on: "ubuntu-latest" container: "quay.io/centos/centos:stream9" + env: + BUILD_REASON: "Schedule" + steps: - name: "Install config manager" shell: bash @@ -76,6 +79,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_debian10.3.yml b/.github/workflows/gen_debian10.3.yml index c5652e78c..5ed6448ea 100644 --- a/.github/workflows/gen_debian10.3.yml +++ b/.github/workflows/gen_debian10.3.yml @@ -19,6 +19,7 @@ jobs: build: runs-on: "ubuntu-latest" container: "debian:10.3" + steps: - name: "set APT to non-interactive" shell: bash diff --git a/.github/workflows/gen_debian10.3_continuous.yml b/.github/workflows/gen_debian10.3_continuous.yml index a9a7d5059..439ccac49 100644 --- a/.github/workflows/gen_debian10.3_continuous.yml +++ b/.github/workflows/gen_debian10.3_continuous.yml @@ -21,47 +21,34 @@ jobs: build: runs-on: "ubuntu-latest" container: "debian:10.3" + env: + BUILD_REASON: "Schedule" + steps: - name: "set APT to non-interactive" shell: bash - run: | - export BUILD_REASON=Schedule - echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections + run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" - name: "Update APT" shell: bash - run: | - export BUILD_REASON=Schedule - apt update + run: "apt update" - name: "Install git" shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y git + run: "apt-get install -y git" - name: "Install curl" shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y curl + run: "apt-get install -y curl" - name: "Update APT" shell: bash - run: | - export BUILD_REASON=Schedule - apt update + run: "apt update" - name: "Ensure /run/sshd exists" shell: bash - run: | - export BUILD_REASON=Schedule - mkdir -p /run/sshd + run: "mkdir -p /run/sshd" - name: "Install openssh-server" shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y openssh-server + run: "apt-get install -y openssh-server" - name: "Workaround git permissions issue" shell: bash - run: | - export BUILD_REASON=Schedule - git config --global --add safe.directory /__w/wezterm/wezterm + run: "git config --global --add safe.directory /__w/wezterm/wezterm" - name: "checkout repo" uses: actions/checkout@v3 with: @@ -85,24 +72,16 @@ jobs: key: "debian10.3-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - name: "Install System Deps" shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps + run: "env PATH=$PATH ./get-deps" - name: "Build (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release + run: "cargo build --all --release" - name: "Test (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release + run: "cargo test --all --release" - name: "Package" shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh + run: "bash ci/deploy.sh" - name: "Upload artifact" uses: actions/upload-artifact@v3 with: @@ -115,6 +94,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_debian10.3_tag.yml b/.github/workflows/gen_debian10.3_tag.yml index 3ed84e241..8cbc90f5f 100644 --- a/.github/workflows/gen_debian10.3_tag.yml +++ b/.github/workflows/gen_debian10.3_tag.yml @@ -9,6 +9,9 @@ jobs: build: runs-on: "ubuntu-latest" container: "debian:10.3" + env: + BUILD_REASON: "Schedule" + steps: - name: "set APT to non-interactive" shell: bash @@ -78,6 +81,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_debian11.yml b/.github/workflows/gen_debian11.yml index e98f30e5a..855e86162 100644 --- a/.github/workflows/gen_debian11.yml +++ b/.github/workflows/gen_debian11.yml @@ -19,6 +19,7 @@ jobs: build: runs-on: "ubuntu-latest" container: "debian:11" + steps: - name: "set APT to non-interactive" shell: bash diff --git a/.github/workflows/gen_debian11_continuous.yml b/.github/workflows/gen_debian11_continuous.yml index 980db559c..38ac83b7d 100644 --- a/.github/workflows/gen_debian11_continuous.yml +++ b/.github/workflows/gen_debian11_continuous.yml @@ -21,47 +21,34 @@ jobs: build: runs-on: "ubuntu-latest" container: "debian:11" + env: + BUILD_REASON: "Schedule" + steps: - name: "set APT to non-interactive" shell: bash - run: | - export BUILD_REASON=Schedule - echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections + run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" - name: "Update APT" shell: bash - run: | - export BUILD_REASON=Schedule - apt update + run: "apt update" - name: "Install git" shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y git + run: "apt-get install -y git" - name: "Install curl" shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y curl + run: "apt-get install -y curl" - name: "Update APT" shell: bash - run: | - export BUILD_REASON=Schedule - apt update + run: "apt update" - name: "Ensure /run/sshd exists" shell: bash - run: | - export BUILD_REASON=Schedule - mkdir -p /run/sshd + run: "mkdir -p /run/sshd" - name: "Install openssh-server" shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y openssh-server + run: "apt-get install -y openssh-server" - name: "Workaround git permissions issue" shell: bash - run: | - export BUILD_REASON=Schedule - git config --global --add safe.directory /__w/wezterm/wezterm + run: "git config --global --add safe.directory /__w/wezterm/wezterm" - name: "checkout repo" uses: actions/checkout@v3 with: @@ -85,24 +72,16 @@ jobs: key: "debian11-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - name: "Install System Deps" shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps + run: "env PATH=$PATH ./get-deps" - name: "Build (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release + run: "cargo build --all --release" - name: "Test (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release + run: "cargo test --all --release" - name: "Package" shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh + run: "bash ci/deploy.sh" - name: "Upload artifact" uses: actions/upload-artifact@v3 with: @@ -115,6 +94,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_debian11_tag.yml b/.github/workflows/gen_debian11_tag.yml index e77499804..10b57c1b9 100644 --- a/.github/workflows/gen_debian11_tag.yml +++ b/.github/workflows/gen_debian11_tag.yml @@ -9,6 +9,9 @@ jobs: build: runs-on: "ubuntu-latest" container: "debian:11" + env: + BUILD_REASON: "Schedule" + steps: - name: "set APT to non-interactive" shell: bash @@ -78,6 +81,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_debian9.12.yml b/.github/workflows/gen_debian9.12.yml index 52c913b75..1654013a4 100644 --- a/.github/workflows/gen_debian9.12.yml +++ b/.github/workflows/gen_debian9.12.yml @@ -19,6 +19,7 @@ jobs: build: runs-on: "ubuntu-latest" container: "debian:9.12" + steps: - name: "set APT to non-interactive" shell: bash diff --git a/.github/workflows/gen_debian9.12_continuous.yml b/.github/workflows/gen_debian9.12_continuous.yml index ccdc770b8..89f0c1192 100644 --- a/.github/workflows/gen_debian9.12_continuous.yml +++ b/.github/workflows/gen_debian9.12_continuous.yml @@ -21,17 +21,16 @@ jobs: build: runs-on: "ubuntu-latest" container: "debian:9.12" + env: + BUILD_REASON: "Schedule" + steps: - name: "set APT to non-interactive" shell: bash - run: | - export BUILD_REASON=Schedule - echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections + run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" - name: "Update APT" shell: bash - run: | - export BUILD_REASON=Schedule - apt update + run: "apt update" - name: "Cache Git installation" uses: actions/cache@v3 with: @@ -40,7 +39,6 @@ jobs: - name: "Install Git from source" shell: bash run: | - export BUILD_REASON=Schedule apt-get install -y wget libcurl4-openssl-dev libexpat-dev gettext libssl-dev libz-dev gcc libextutils-autoinstall-perl make if test ! -x /usr/local/git/bin/git ; then cd /tmp @@ -52,29 +50,19 @@ jobs: ln -s /usr/local/git/bin/git /usr/local/bin/git - name: "Install curl" shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y curl + run: "apt-get install -y curl" - name: "Update APT" shell: bash - run: | - export BUILD_REASON=Schedule - apt update + run: "apt update" - name: "Ensure /run/sshd exists" shell: bash - run: | - export BUILD_REASON=Schedule - mkdir -p /run/sshd + run: "mkdir -p /run/sshd" - name: "Install openssh-server" shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y openssh-server + run: "apt-get install -y openssh-server" - name: "Workaround git permissions issue" shell: bash - run: | - export BUILD_REASON=Schedule - git config --global --add safe.directory /__w/wezterm/wezterm + run: "git config --global --add safe.directory /__w/wezterm/wezterm" - name: "checkout repo" uses: actions/checkout@v3 with: @@ -98,24 +86,16 @@ jobs: key: "debian9.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - name: "Install System Deps" shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps + run: "env PATH=$PATH ./get-deps" - name: "Build (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release + run: "cargo build --all --release" - name: "Test (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release + run: "cargo test --all --release" - name: "Package" shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh + run: "bash ci/deploy.sh" - name: "Upload artifact" uses: actions/upload-artifact@v3 with: @@ -128,6 +108,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_debian9.12_tag.yml b/.github/workflows/gen_debian9.12_tag.yml index 414bf3ead..0ece26c72 100644 --- a/.github/workflows/gen_debian9.12_tag.yml +++ b/.github/workflows/gen_debian9.12_tag.yml @@ -9,6 +9,9 @@ jobs: build: runs-on: "ubuntu-latest" container: "debian:9.12" + env: + BUILD_REASON: "Schedule" + steps: - name: "set APT to non-interactive" shell: bash @@ -92,6 +95,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_fedora33.yml b/.github/workflows/gen_fedora33.yml index cf5c5f353..d8960b2e9 100644 --- a/.github/workflows/gen_fedora33.yml +++ b/.github/workflows/gen_fedora33.yml @@ -19,6 +19,7 @@ jobs: build: runs-on: "ubuntu-latest" container: "fedora:33" + steps: - name: "Install config manager" shell: bash diff --git a/.github/workflows/gen_fedora33_continuous.yml b/.github/workflows/gen_fedora33_continuous.yml index 8f2753e5e..b71711e74 100644 --- a/.github/workflows/gen_fedora33_continuous.yml +++ b/.github/workflows/gen_fedora33_continuous.yml @@ -21,37 +21,28 @@ jobs: build: runs-on: "ubuntu-latest" container: "fedora:33" + env: + BUILD_REASON: "Schedule" + steps: - name: "Install config manager" shell: bash - run: | - export BUILD_REASON=Schedule - dnf install -y 'dnf-command(config-manager)' + run: "dnf install -y 'dnf-command(config-manager)'" - name: "Install git" shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y git + run: "yum install -y git" - name: "Install curl" shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y curl + run: "yum install -y curl" - name: "Ensure /run/sshd exists" shell: bash - run: | - export BUILD_REASON=Schedule - mkdir -p /run/sshd + run: "mkdir -p /run/sshd" - name: "Install openssh-server" shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y openssh-server + run: "yum install -y openssh-server" - name: "Workaround git permissions issue" shell: bash - run: | - export BUILD_REASON=Schedule - git config --global --add safe.directory /__w/wezterm/wezterm + run: "git config --global --add safe.directory /__w/wezterm/wezterm" - name: "checkout repo" uses: actions/checkout@v3 with: @@ -75,29 +66,19 @@ jobs: key: "fedora33-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - name: "Install System Deps" shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps + run: "env PATH=$PATH ./get-deps" - name: "Build (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release + run: "cargo build --all --release" - name: "Test (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release + run: "cargo test --all --release" - name: "Package" shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh + run: "bash ci/deploy.sh" - name: "Move RPM" shell: bash - run: | - export BUILD_REASON=Schedule - mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora33.rpm + run: "mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora33.rpm" - name: "Upload artifact" uses: actions/upload-artifact@v3 with: @@ -108,6 +89,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_fedora33_tag.yml b/.github/workflows/gen_fedora33_tag.yml index 8fc53c3f8..a7c384eec 100644 --- a/.github/workflows/gen_fedora33_tag.yml +++ b/.github/workflows/gen_fedora33_tag.yml @@ -9,6 +9,9 @@ jobs: build: runs-on: "ubuntu-latest" container: "fedora:33" + env: + BUILD_REASON: "Schedule" + steps: - name: "Install config manager" shell: bash @@ -73,6 +76,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_fedora34.yml b/.github/workflows/gen_fedora34.yml index 99fe34c98..18b885f57 100644 --- a/.github/workflows/gen_fedora34.yml +++ b/.github/workflows/gen_fedora34.yml @@ -19,6 +19,7 @@ jobs: build: runs-on: "ubuntu-latest" container: "fedora:34" + steps: - name: "Install config manager" shell: bash diff --git a/.github/workflows/gen_fedora34_continuous.yml b/.github/workflows/gen_fedora34_continuous.yml index 9f999b0a6..7999b1358 100644 --- a/.github/workflows/gen_fedora34_continuous.yml +++ b/.github/workflows/gen_fedora34_continuous.yml @@ -21,37 +21,28 @@ jobs: build: runs-on: "ubuntu-latest" container: "fedora:34" + env: + BUILD_REASON: "Schedule" + steps: - name: "Install config manager" shell: bash - run: | - export BUILD_REASON=Schedule - dnf install -y 'dnf-command(config-manager)' + run: "dnf install -y 'dnf-command(config-manager)'" - name: "Install git" shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y git + run: "yum install -y git" - name: "Install curl" shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y curl + run: "yum install -y curl" - name: "Ensure /run/sshd exists" shell: bash - run: | - export BUILD_REASON=Schedule - mkdir -p /run/sshd + run: "mkdir -p /run/sshd" - name: "Install openssh-server" shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y openssh-server + run: "yum install -y openssh-server" - name: "Workaround git permissions issue" shell: bash - run: | - export BUILD_REASON=Schedule - git config --global --add safe.directory /__w/wezterm/wezterm + run: "git config --global --add safe.directory /__w/wezterm/wezterm" - name: "checkout repo" uses: actions/checkout@v3 with: @@ -75,29 +66,19 @@ jobs: key: "fedora34-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - name: "Install System Deps" shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps + run: "env PATH=$PATH ./get-deps" - name: "Build (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release + run: "cargo build --all --release" - name: "Test (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release + run: "cargo test --all --release" - name: "Package" shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh + run: "bash ci/deploy.sh" - name: "Move RPM" shell: bash - run: | - export BUILD_REASON=Schedule - mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora34.rpm + run: "mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora34.rpm" - name: "Upload artifact" uses: actions/upload-artifact@v3 with: @@ -108,6 +89,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_fedora34_tag.yml b/.github/workflows/gen_fedora34_tag.yml index 03d9595df..fba9a0fe1 100644 --- a/.github/workflows/gen_fedora34_tag.yml +++ b/.github/workflows/gen_fedora34_tag.yml @@ -9,6 +9,9 @@ jobs: build: runs-on: "ubuntu-latest" container: "fedora:34" + env: + BUILD_REASON: "Schedule" + steps: - name: "Install config manager" shell: bash @@ -73,6 +76,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_fedora35.yml b/.github/workflows/gen_fedora35.yml index c00b746f0..b66568358 100644 --- a/.github/workflows/gen_fedora35.yml +++ b/.github/workflows/gen_fedora35.yml @@ -19,6 +19,7 @@ jobs: build: runs-on: "ubuntu-latest" container: "fedora:35" + steps: - name: "Install config manager" shell: bash diff --git a/.github/workflows/gen_fedora35_continuous.yml b/.github/workflows/gen_fedora35_continuous.yml index d05889483..b9ab09e28 100644 --- a/.github/workflows/gen_fedora35_continuous.yml +++ b/.github/workflows/gen_fedora35_continuous.yml @@ -21,37 +21,28 @@ jobs: build: runs-on: "ubuntu-latest" container: "fedora:35" + env: + BUILD_REASON: "Schedule" + steps: - name: "Install config manager" shell: bash - run: | - export BUILD_REASON=Schedule - dnf install -y 'dnf-command(config-manager)' + run: "dnf install -y 'dnf-command(config-manager)'" - name: "Install git" shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y git + run: "yum install -y git" - name: "Install curl" shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y curl + run: "yum install -y curl" - name: "Ensure /run/sshd exists" shell: bash - run: | - export BUILD_REASON=Schedule - mkdir -p /run/sshd + run: "mkdir -p /run/sshd" - name: "Install openssh-server" shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y openssh-server + run: "yum install -y openssh-server" - name: "Workaround git permissions issue" shell: bash - run: | - export BUILD_REASON=Schedule - git config --global --add safe.directory /__w/wezterm/wezterm + run: "git config --global --add safe.directory /__w/wezterm/wezterm" - name: "checkout repo" uses: actions/checkout@v3 with: @@ -75,29 +66,19 @@ jobs: key: "fedora35-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - name: "Install System Deps" shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps + run: "env PATH=$PATH ./get-deps" - name: "Build (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release + run: "cargo build --all --release" - name: "Test (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release + run: "cargo test --all --release" - name: "Package" shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh + run: "bash ci/deploy.sh" - name: "Move RPM" shell: bash - run: | - export BUILD_REASON=Schedule - mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora35.rpm + run: "mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora35.rpm" - name: "Upload artifact" uses: actions/upload-artifact@v3 with: @@ -108,6 +89,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_fedora35_tag.yml b/.github/workflows/gen_fedora35_tag.yml index d4e58aec6..952681b72 100644 --- a/.github/workflows/gen_fedora35_tag.yml +++ b/.github/workflows/gen_fedora35_tag.yml @@ -9,6 +9,9 @@ jobs: build: runs-on: "ubuntu-latest" container: "fedora:35" + env: + BUILD_REASON: "Schedule" + steps: - name: "Install config manager" shell: bash @@ -73,6 +76,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_macos.yml b/.github/workflows/gen_macos.yml index 3218002f3..6644946e6 100644 --- a/.github/workflows/gen_macos.yml +++ b/.github/workflows/gen_macos.yml @@ -19,6 +19,9 @@ jobs: build: runs-on: "macos-11" + env: + MACOSX_DEPLOYMENT_TARGET: "10.9" + steps: - name: "checkout repo" uses: actions/checkout@v3 @@ -35,34 +38,22 @@ jobs: ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Install Rust (ARM)" shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - rustup target add aarch64-apple-darwin + run: "rustup target add aarch64-apple-darwin" - name: "Install System Deps" shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - env PATH=$PATH ./get-deps + run: "env PATH=$PATH ./get-deps" - name: "Build (Release mode Intel)" shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo build --target x86_64-apple-darwin --all --release + run: "cargo build --target x86_64-apple-darwin --all --release" - name: "Build (Release mode ARM)" shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo build --target aarch64-apple-darwin --all --release + run: "cargo build --target aarch64-apple-darwin --all --release" - name: "Test (Release mode)" shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo test --target x86_64-apple-darwin --all --release + run: "cargo test --target x86_64-apple-darwin --all --release" - name: "Package" shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - bash ci/deploy.sh + run: "bash ci/deploy.sh" - name: "Upload artifact" uses: actions/upload-artifact@v3 with: diff --git a/.github/workflows/gen_macos_continuous.yml b/.github/workflows/gen_macos_continuous.yml index 023e90637..020b2f1a2 100644 --- a/.github/workflows/gen_macos_continuous.yml +++ b/.github/workflows/gen_macos_continuous.yml @@ -21,6 +21,10 @@ jobs: build: runs-on: "macos-11" + env: + MACOSX_DEPLOYMENT_TARGET: "10.9" + BUILD_REASON: "Schedule" + steps: - name: "checkout repo" uses: actions/checkout@v3 @@ -37,39 +41,19 @@ jobs: ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Install Rust (ARM)" shell: bash - run: | - export BUILD_REASON=Schedule - export MACOSX_DEPLOYMENT_TARGET=10.9 - rustup target add aarch64-apple-darwin - + run: "rustup target add aarch64-apple-darwin" - name: "Install System Deps" shell: bash - run: | - export BUILD_REASON=Schedule - export MACOSX_DEPLOYMENT_TARGET=10.9 - env PATH=$PATH ./get-deps - + run: "env PATH=$PATH ./get-deps" - name: "Build (Release mode Intel)" shell: bash - run: | - export BUILD_REASON=Schedule - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo build --target x86_64-apple-darwin --all --release - + run: "cargo build --target x86_64-apple-darwin --all --release" - name: "Build (Release mode ARM)" shell: bash - run: | - export BUILD_REASON=Schedule - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo build --target aarch64-apple-darwin --all --release - + run: "cargo build --target aarch64-apple-darwin --all --release" - name: "Test (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo test --target x86_64-apple-darwin --all --release - + run: "cargo test --target x86_64-apple-darwin --all --release" - name: "Package" env: MACOS_CERT: ${{ secrets.MACOS_CERT }} @@ -78,11 +62,7 @@ jobs: MACOS_APPLEID: ${{ secrets.MACOS_APPLEID }} MACOS_APP_PW: ${{ secrets.MACOS_APP_PW }} shell: bash - run: | - export BUILD_REASON=Schedule - export MACOSX_DEPLOYMENT_TARGET=10.9 - bash ci/deploy.sh - + run: "bash ci/deploy.sh" - name: "Upload artifact" uses: actions/upload-artifact@v3 with: @@ -93,6 +73,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "checkout repo" uses: actions/checkout@v3 diff --git a/.github/workflows/gen_macos_tag.yml b/.github/workflows/gen_macos_tag.yml index 3f415cc88..de1223ba6 100644 --- a/.github/workflows/gen_macos_tag.yml +++ b/.github/workflows/gen_macos_tag.yml @@ -9,6 +9,10 @@ jobs: build: runs-on: "macos-11" + env: + MACOSX_DEPLOYMENT_TARGET: "10.9" + BUILD_REASON: "Schedule" + steps: - name: "checkout repo" uses: actions/checkout@v3 @@ -25,29 +29,19 @@ jobs: ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - name: "Install Rust (ARM)" shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - rustup target add aarch64-apple-darwin + run: "rustup target add aarch64-apple-darwin" - name: "Install System Deps" shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - env PATH=$PATH ./get-deps + run: "env PATH=$PATH ./get-deps" - name: "Build (Release mode Intel)" shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo build --target x86_64-apple-darwin --all --release + run: "cargo build --target x86_64-apple-darwin --all --release" - name: "Build (Release mode ARM)" shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo build --target aarch64-apple-darwin --all --release + run: "cargo build --target aarch64-apple-darwin --all --release" - name: "Test (Release mode)" shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo test --target x86_64-apple-darwin --all --release + run: "cargo test --target x86_64-apple-darwin --all --release" - name: "Package" env: MACOS_CERT: ${{ secrets.MACOS_CERT }} @@ -56,9 +50,7 @@ jobs: MACOS_APPLEID: ${{ secrets.MACOS_APPLEID }} MACOS_APP_PW: ${{ secrets.MACOS_APP_PW }} shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - bash ci/deploy.sh + run: "bash ci/deploy.sh" - name: "Upload artifact" uses: actions/upload-artifact@v3 with: @@ -72,9 +64,7 @@ jobs: token: "${{ secrets.GH_PAT }}" - name: "Update homebrew tap formula" shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - cp wezterm.rb homebrew-wezterm/Casks/wezterm.rb + run: "cp wezterm.rb homebrew-wezterm/Casks/wezterm.rb" - name: "Commit homebrew tap changes" uses: stefanzweifel/git-auto-commit-action@v4 with: @@ -84,6 +74,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "checkout repo" uses: actions/checkout@v3 diff --git a/.github/workflows/gen_ubuntu18.yml b/.github/workflows/gen_ubuntu18.yml index 2b606da15..a711ee5ff 100644 --- a/.github/workflows/gen_ubuntu18.yml +++ b/.github/workflows/gen_ubuntu18.yml @@ -19,6 +19,7 @@ jobs: build: runs-on: "ubuntu-18.04" + steps: - name: "Update APT" shell: bash diff --git a/.github/workflows/gen_ubuntu18_continuous.yml b/.github/workflows/gen_ubuntu18_continuous.yml index 48edd7f56..0f76d7e8c 100644 --- a/.github/workflows/gen_ubuntu18_continuous.yml +++ b/.github/workflows/gen_ubuntu18_continuous.yml @@ -21,17 +21,16 @@ jobs: build: runs-on: "ubuntu-18.04" + env: + BUILD_REASON: "Schedule" + steps: - name: "Update APT" shell: bash - run: | - export BUILD_REASON=Schedule - sudo -n apt update + run: "sudo -n apt update" - name: "Install git" shell: bash - run: | - export BUILD_REASON=Schedule - sudo -n apt-get install -y git + run: "sudo -n apt-get install -y git" - name: "checkout repo" uses: actions/checkout@v3 with: @@ -55,34 +54,22 @@ jobs: key: "ubuntu18-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - name: "Install System Deps" shell: bash - run: | - export BUILD_REASON=Schedule - sudo -n env PATH=$PATH ./get-deps + run: "sudo -n env PATH=$PATH ./get-deps" - name: "Build (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release + run: "cargo build --all --release" - name: "Test (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release + run: "cargo test --all --release" - name: "Package" shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh + run: "bash ci/deploy.sh" - name: "Source Tarball" shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/source-archive.sh + run: "bash ci/source-archive.sh" - name: "Build AppImage" shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/appimage.sh + run: "bash ci/appimage.sh" - name: "Upload artifact" uses: actions/upload-artifact@v3 with: @@ -98,6 +85,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "checkout repo" uses: actions/checkout@v3 diff --git a/.github/workflows/gen_ubuntu18_tag.yml b/.github/workflows/gen_ubuntu18_tag.yml index c9a2c1b65..c8777aed6 100644 --- a/.github/workflows/gen_ubuntu18_tag.yml +++ b/.github/workflows/gen_ubuntu18_tag.yml @@ -9,6 +9,9 @@ jobs: build: runs-on: "ubuntu-18.04" + env: + BUILD_REASON: "Schedule" + steps: - name: "Update APT" shell: bash @@ -83,6 +86,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "checkout repo" uses: actions/checkout@v3 diff --git a/.github/workflows/gen_ubuntu20.04.yml b/.github/workflows/gen_ubuntu20.04.yml index b00955e4f..5ec20500f 100644 --- a/.github/workflows/gen_ubuntu20.04.yml +++ b/.github/workflows/gen_ubuntu20.04.yml @@ -19,6 +19,7 @@ jobs: build: runs-on: "ubuntu-latest" container: "ubuntu:20.04" + steps: - name: "set APT to non-interactive" shell: bash diff --git a/.github/workflows/gen_ubuntu20.04_continuous.yml b/.github/workflows/gen_ubuntu20.04_continuous.yml index 8ae336179..070bbb326 100644 --- a/.github/workflows/gen_ubuntu20.04_continuous.yml +++ b/.github/workflows/gen_ubuntu20.04_continuous.yml @@ -21,47 +21,34 @@ jobs: build: runs-on: "ubuntu-latest" container: "ubuntu:20.04" + env: + BUILD_REASON: "Schedule" + steps: - name: "set APT to non-interactive" shell: bash - run: | - export BUILD_REASON=Schedule - echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections + run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" - name: "Update APT" shell: bash - run: | - export BUILD_REASON=Schedule - apt update + run: "apt update" - name: "Install git" shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y git + run: "apt-get install -y git" - name: "Install curl" shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y curl + run: "apt-get install -y curl" - name: "Update APT" shell: bash - run: | - export BUILD_REASON=Schedule - apt update + run: "apt update" - name: "Ensure /run/sshd exists" shell: bash - run: | - export BUILD_REASON=Schedule - mkdir -p /run/sshd + run: "mkdir -p /run/sshd" - name: "Install openssh-server" shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y openssh-server + run: "apt-get install -y openssh-server" - name: "Workaround git permissions issue" shell: bash - run: | - export BUILD_REASON=Schedule - git config --global --add safe.directory /__w/wezterm/wezterm + run: "git config --global --add safe.directory /__w/wezterm/wezterm" - name: "checkout repo" uses: actions/checkout@v3 with: @@ -85,24 +72,16 @@ jobs: key: "ubuntu20.04-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - name: "Install System Deps" shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps + run: "env PATH=$PATH ./get-deps" - name: "Build (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release + run: "cargo build --all --release" - name: "Test (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release + run: "cargo test --all --release" - name: "Package" shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh + run: "bash ci/deploy.sh" - name: "Upload artifact" uses: actions/upload-artifact@v3 with: @@ -115,6 +94,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_ubuntu20.04_tag.yml b/.github/workflows/gen_ubuntu20.04_tag.yml index acb720cf6..77220f217 100644 --- a/.github/workflows/gen_ubuntu20.04_tag.yml +++ b/.github/workflows/gen_ubuntu20.04_tag.yml @@ -9,6 +9,9 @@ jobs: build: runs-on: "ubuntu-latest" container: "ubuntu:20.04" + env: + BUILD_REASON: "Schedule" + steps: - name: "set APT to non-interactive" shell: bash @@ -78,6 +81,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "Workaround git permissions issue" shell: bash diff --git a/.github/workflows/gen_windows.yml b/.github/workflows/gen_windows.yml index 1ddbe68e9..2161c7a90 100644 --- a/.github/workflows/gen_windows.yml +++ b/.github/workflows/gen_windows.yml @@ -19,6 +19,7 @@ jobs: build: runs-on: "windows-latest" + steps: - name: "checkout repo" uses: actions/checkout@v3 diff --git a/.github/workflows/gen_windows_continuous.yml b/.github/workflows/gen_windows_continuous.yml index 093616404..c4fba2861 100644 --- a/.github/workflows/gen_windows_continuous.yml +++ b/.github/workflows/gen_windows_continuous.yml @@ -21,6 +21,9 @@ jobs: build: runs-on: "windows-latest" + env: + BUILD_REASON: "Schedule" + steps: - name: "checkout repo" uses: actions/checkout@v3 @@ -52,14 +55,10 @@ jobs: cargo build --all --release - name: "Test (Release mode)" shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release + run: "cargo test --all --release" - name: "Package" shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh + run: "bash ci/deploy.sh" - name: "Upload artifact" uses: actions/upload-artifact@v3 with: @@ -72,6 +71,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "checkout repo" uses: actions/checkout@v3 diff --git a/.github/workflows/gen_windows_tag.yml b/.github/workflows/gen_windows_tag.yml index b6c34b317..dab272df5 100644 --- a/.github/workflows/gen_windows_tag.yml +++ b/.github/workflows/gen_windows_tag.yml @@ -9,6 +9,9 @@ jobs: build: runs-on: "windows-latest" + env: + BUILD_REASON: "Schedule" + steps: - name: "checkout repo" uses: actions/checkout@v3 @@ -55,6 +58,7 @@ jobs: upload: runs-on: ubuntu-latest needs: build + steps: - name: "checkout repo" uses: actions/checkout@v3