ci: allow running with docker again, add forgejo specific ci.yml
This commit is contained in:
parent
9ce78ffae2
commit
5516ff93d1
2 changed files with 773 additions and 1 deletions
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
|
@ -100,11 +100,32 @@ jobs:
|
|||
exit 1
|
||||
fi
|
||||
|
||||
#- uses: nixbuild/nix-quick-install-action@master
|
||||
- uses: cachix/install-nix-action@v31.1.0
|
||||
|
||||
- name: Nom
|
||||
if: ${{ env.ACT }}
|
||||
run: |
|
||||
echo "aaaa"
|
||||
nix profile install nixpkgs#nix-output-monitor
|
||||
sudo cp $(which nom) /usr/bin/nom-nix
|
||||
file $(which nom)
|
||||
lsblk
|
||||
|
||||
#- uses: https://github.com/cachix/install-nix-action@v27
|
||||
# if: ${{ ! env.ACT }}
|
||||
|
||||
- name: Prepare build environment
|
||||
run: |
|
||||
if ! type nom &> /dev/null; then
|
||||
sudo cp $(which nix) /usr/bin/nom-or-nix
|
||||
fi
|
||||
echo 'source $HOME/.nix-profile/share/nix-direnv/direnvrc' > "$HOME/.direnvrc"
|
||||
nix profile install --inputs-from . nixpkgs#direnv nixpkgs#nix-direnv
|
||||
direnv allow
|
||||
nix develop .#all-features --command true
|
||||
set -x
|
||||
file $(which nom-nix)
|
||||
nom develop .#all-features --command true
|
||||
|
||||
- name: Cache CI dependencies
|
||||
run: |
|
||||
|
@ -196,6 +217,9 @@ jobs:
|
|||
with:
|
||||
persist-credentials: false
|
||||
|
||||
#- uses: nixbuild/nix-quick-install-action@master
|
||||
- uses: cachix/install-nix-action@v31.1.0
|
||||
|
||||
- name: Setup SSH web publish
|
||||
env:
|
||||
web_upload_ssh_private_key: ${{ secrets.WEB_UPLOAD_SSH_PRIVATE_KEY }}
|
||||
|
@ -227,6 +251,7 @@ jobs:
|
|||
- name: Prepare build environment
|
||||
run: |
|
||||
echo 'source $HOME/.nix-profile/share/nix-direnv/direnvrc' > "$HOME/.direnvrc"
|
||||
nix profile install --impure --inputs-from . nixpkgs#direnv nixpkgs#nix-direnv
|
||||
direnv allow
|
||||
nix develop .#all-features --command true --impure
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue