a #108
Workflow file for this run
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 | |
on: | |
push: | |
paths: | |
- "builds/**" | |
- "ci/**" | |
jobs: | |
build: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install lpm | |
run: | | |
cargo install lpm --git https://github.com/lodosgroup/lpm.git --branch stable | |
sudo ln -s ~/.cargo/bin/lpm /usr/bin/lpm # a simple workaround for "sudo: lpm command not found" problem | |
- name: lpm --update --all | |
run: | | |
sudo lpm --update --all | |
- name: Sync with 'linux-amd64-default' repository | |
run: | | |
sudo lpm --yes --repository --add linux-amd64-default linux-amd64-default.lodpm.com | |
sudo lpm --update --index | |
- name: ci/pre-build | |
run: ./ci/pre-build | |
- name: build the package (for PR) | |
if: github.ref != 'refs/heads/linux-amd64-default' | |
run: ./ci/build | |
- name: Activate SSH (for linux-amd64-default branch) | |
# if: github.event_name != 'pull_request' && github.ref == 'refs/heads/linux-amd64-default' | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: | | |
${{ secrets.REPOSITORY_INDEX_SSH }} | |
${{ secrets.PACKAGE_SERVER_SSH }} | |
- name: build the package (for linux-amd64-default branch) | |
# if: github.event_name != 'pull_request' && github.ref == 'refs/heads/linux-amd64-default' | |
run: ./ci/build FROM_DEFAULT_BRANCH |